Array<T extends NativeType> constructor Null safety

const Array<T extends NativeType>(
  1. int dimension1,
  2. [int dimension2,
  3. int dimension3,
  4. int dimension4,
  5. int dimension5]
)

Const constructor to specify Array dimensions in Structs.

class MyStruct extends Struct {
  @Array(8)
  external Array<Uint8> inlineArray;

  @Array(2, 2, 2)
  external Array<Array<Array<Uint8>>> threeDimensionalInlineArray;
}

Do not invoke in normal code.

Implementation

const factory Array(int dimension1,
    [int dimension2,
    int dimension3,
    int dimension4,
    int dimension5]) = _ArraySize<T>;