JsArray<E> class
Constructors
- JsArray()
-
Creates an empty JavaScript array.
factory
-
JsArray.from(Iterable<
E> other) -
Creates a new JavaScript array and initializes it to the contents of
other.factory
Properties
Methods
-
add(
E value) → void -
addAll(
Iterable< E> iterable) → void -
callMethod(
Object method, [List? args]) → dynamic -
Calls
methodon the JavaScript object with the argumentsargsand returns the result.inherited -
deleteProperty(
Object property) → void -
Removes
propertyfrom the JavaScript object.inherited -
hasProperty(
Object property) → bool -
Returns
trueif the JavaScript object contains the specified property either directly or though its prototype chain.inherited -
insert(
int index, E element) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeAt(
int index) → E -
removeLast(
) → E -
removeRange(
int start, int end) → void -
setRange(
int start, int end, Iterable< E> iterable, [int skipCount = 0]) → void -
sort(
[int compare(E a, E b)?]) → void -
toString(
) → String -
Returns the result of the JavaScript objects
toStringmethod.inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
-
operator [](
Object index) → E -
Returns the value associated with
propertyfrom the proxied JavaScript object.override -
operator []=(
Object property, Object? value) → void -
inherited