description

# Array<T extends NativeType> class final

A fixed-sized array of `T`s.

Implemented types
  - NativeType
Available extensions
  - AbiSpecificIntegerArray
  - ArrayAddress
  - ArrayArray
  - BoolArray
  - DoubleArray
  - FloatArray
  - Int8Array
  - Int16Array
  - Int32Array
  - Int64Array
  - PointerArray
  - StructArray
  - Uint8Array
  - Uint16Array
  - Uint32Array
  - Uint64Array
  - UnionArray
Annotations
  - @Since.new('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, {@Since.new('3.7') int variableDimension})
  Annotation to a variable length Array in Structs.
  const
  factory
Array.variableWithVariableDimension([int dimension1, int dimension2, int dimension3, int dimension4, int dimension5])
  Annotation to specify a variable length Array with a configurable variable dimension (`dimension1`) 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
elements → List<int>

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

  A list view of the bytes of this array.
  no setter
elements → List<Array<T>>

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

  A list view of the bytes of this array.
  no setter
elements → List<bool>

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

  A list view of the bytes of this array.
  no setter
elements → Float64List

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

  A list view of the bytes of this array.
  no setter
elements → Float32List

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

  A list view of the bytes of this array.
  no setter
elements → Int8List

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

  A list view of the bytes of this array.
  no setter
elements → Int16List

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

  A list view of the bytes of this array.
  no setter
elements → Int32List

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

  A list view of the bytes of this array.
  no setter
elements → Int64List

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

  A list view of the bytes of this array.
  no setter
elements → List<Pointer<T>>

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

  A list view of the bytes of this array.
  no setter
elements → List<T>

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

  A list view of the bytes of this array.
  no setter
elements → Uint8List

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

  A list view of the bytes of this array.
  no setter
elements → Uint16List

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

  A list view of the bytes of this array.
  no setter
elements → Uint32List

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

  A list view of the bytes of this array.
  no setter
elements → Uint64List

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

  A list view of the bytes of this array.
  no setter
elements → List<T>

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

  A list view of the bytes of this array.
  no setter
hashCode → int
  The hash code for this object.
  no setter inherited
runtimeType → Type
  A representation of the runtime type of the object.
  no setter inherited

## 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

  Loads a Dart value from this array at `index`.
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

  Loads a Dart value from this array at `index`.
operator [](int index) → double

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

  Loads a Dart value from this array at `index`.
operator [](int index) → double

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

  Loads a Dart value from this array at `index`.
operator [](int index) → int

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

  Loads a Dart value from this array at `index`.
operator [](int index) → int

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

  Loads a Dart value from this array at `index`.
operator [](int index) → int

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

  Loads a Dart value from this array at `index`.
operator [](int index) → int

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

  Loads a Dart value from this array at `index`.
operator [](int index) → Pointer<T>

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

  Loads a Dart value from this array at `index`.
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

  Loads a Dart value from this array at `index`.
operator [](int index) → int

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

  Loads a Dart value from this array at `index`.
operator [](int index) → int

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

  Loads a Dart value from this array at `index`.
operator [](int index) → int

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

  Loads a Dart value from this array at `index`.
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

  Stores a Dart value in this array at `index`.
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

  Stores a Dart value in this array at `index`.
operator []=(int index, double value) → void

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

  Stores a Dart value in this array at `index`.
operator []=(int index, double value) → void

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

  Stores a Dart value in this array at `index`.
operator []=(int index, int value) → void

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

  Stores a Dart value in this array at `index`.
operator []=(int index, int value) → void

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

  Stores a Dart value in this array at `index`.
operator []=(int index, int value) → void

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

  Stores a Dart value in this array at `index`.
operator []=(int index, int value) → void

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

  Stores a Dart value in this array at `index`.
operator []=(int index, Pointer<T> value) → void

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

  Stores a Dart value in this array at `index`.
operator []=(int index, int value) → void

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

  Stores a Dart value in this array at `index`.
operator []=(int index, int value) → void

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

  Stores a Dart value in this array at `index`.
operator []=(int index, int value) → void

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

  Stores a Dart value in this array at `index`.
operator []=(int index, int value) → void

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

  Stores a Dart value in this array at `index`.