Array<T extends Object> class

A base-based, non-growable, 1-dimensional array of T.

Constructors

Array(List<T> elements, [int base = 0])
Instantiate a base-based Array from the elements.
const
Array.empty(T fillValue, int length, [int base = 0])
Creates an empty array
factory

Properties

base int
The index of the first element of the array.
final
elements List<T>
The elements of the array as a zero-based ordered collection of T.
final
hashCode int
The hash code for this object.
no setterinherited
length int
Returns the number of elements in the array.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

get(int index) → T
Returns the array value at index.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setAt(int index, T value) → void
Sets the array value at index.
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited