Array<T extends NativeType> class final

A fixed-sized array of Ts.

Implemented types
Available extensions
Annotations
  • @Since('2.13')

Constructors

Array(int dimension1, [int dimension2, int dimension3, int dimension4, int dimension5])
Annotation to specify Array dimensions in Structs.
const
factory
Array.multi(List<int> dimensions)
Annotation to specify Array dimensions in Structs.
const
factory
Array.variable([int dimension2, int dimension3, int dimension4, int dimension5])
Annotation to specify a variable length Array in Structs.
const
factory
Array.variableMulti(List<int> dimensions)
Annotation to a variable length Array in Structs.
const
factory

Properties

address Pointer<T>

Available on Array<T>, provided by the ArrayAddress extension

The memory address of the underlying data.
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited
operator [](int index) int

Available on Array<T>, provided by the AbiSpecificIntegerArray extension

operator [](int index) Array<T>

Available on Array<Array<T>>, provided by the ArrayArray extension

operator [](int index) bool

Available on Array<Bool>, provided by the BoolArray extension

operator [](int index) double

Available on Array<Double>, provided by the DoubleArray extension

operator [](int index) double

Available on Array<Float>, provided by the FloatArray extension

operator [](int index) int

Available on Array<Int8>, provided by the Int8Array extension

operator [](int index) int

Available on Array<Int16>, provided by the Int16Array extension

operator [](int index) int

Available on Array<Int32>, provided by the Int32Array extension

operator [](int index) int

Available on Array<Int64>, provided by the Int64Array extension

operator [](int index) Pointer<T>

Available on Array<Pointer<T>>, provided by the PointerArray extension

operator [](int index) → T

Available on Array<T>, provided by the StructArray extension

This extension method must be invoked on a receiver of type Pointer<T> where T is a compile-time constant type.
operator [](int index) int

Available on Array<Uint8>, provided by the Uint8Array extension

operator [](int index) int

Available on Array<Uint16>, provided by the Uint16Array extension

operator [](int index) int

Available on Array<Uint32>, provided by the Uint32Array extension

operator [](int index) int

Available on Array<Uint64>, provided by the Uint64Array extension

operator [](int index) → T

Available on Array<T>, provided by the UnionArray extension

This extension method must be invoked on a receiver of type Pointer<T> where T is a compile-time constant type.
operator []=(int index, int value) → void

Available on Array<T>, provided by the AbiSpecificIntegerArray extension

operator []=(int index, Array<T> value) → void

Available on Array<Array<T>>, provided by the ArrayArray extension

operator []=(int index, bool value) → void

Available on Array<Bool>, provided by the BoolArray extension

operator []=(int index, double value) → void

Available on Array<Double>, provided by the DoubleArray extension

operator []=(int index, double value) → void

Available on Array<Float>, provided by the FloatArray extension

operator []=(int index, int value) → void

Available on Array<Int8>, provided by the Int8Array extension

operator []=(int index, int value) → void

Available on Array<Int16>, provided by the Int16Array extension

operator []=(int index, int value) → void

Available on Array<Int32>, provided by the Int32Array extension

operator []=(int index, int value) → void

Available on Array<Int64>, provided by the Int64Array extension

operator []=(int index, Pointer<T> value) → void

Available on Array<Pointer<T>>, provided by the PointerArray extension

operator []=(int index, int value) → void

Available on Array<Uint8>, provided by the Uint8Array extension

operator []=(int index, int value) → void

Available on Array<Uint16>, provided by the Uint16Array extension

operator []=(int index, int value) → void

Available on Array<Uint32>, provided by the Uint32Array extension

operator []=(int index, int value) → void

Available on Array<Uint64>, provided by the Uint64Array extension