add method

  1. @Since('3.10')
  2. @JS('push')
void add(
  1. T value
)

Adds value to the end of this Array, extending the length by one.

Implementation

// This maps to `List.add` to avoid accidental usage of
// `JSAnyOperatorExtension.add` when migrating `List`s to `JSArray`s. See
// https://github.com/dart-lang/sdk/issues/59830.
@Since('3.10')
@JS('push')
external void add(T value);