JsArray<E> class

Inheritance

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

hashCode int
The hash code for this object.
no setterinherited
length int
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

add(E value) → void
addAll(Iterable<E> iterable) → void
callMethod(Object method, [List? args]) → dynamic
Calls method on the JavaScript object with the arguments args and returns the result.
inherited
deleteProperty(Object property) → void
Removes property from the JavaScript object.
inherited
hasProperty(Object property) bool
Returns true if 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 toString method.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited
operator [](Object index) → E
Returns the value associated with property from the proxied JavaScript object.
override
operator []=(Object property, Object? value) → void
inherited