Array<T extends NativeType>.multi constructor

const Array<T extends NativeType>.multi(
  1. List<int> dimensions
)

Const constructor to specify Array dimensions in Structs.

final class MyStruct extends Struct {
  @Array.multi([2, 2, 2])
  external Array<Array<Array<Uint8>>> threeDimensionalInlineArray;

  @Array.multi([2, 2, 2, 2, 2, 2, 2, 2])
  external Array<Array<Array<Array<Array<Array<Array<Array<Uint8>>>>>>>> eightDimensionalInlineArray;
}

Do not invoke in normal code.

Implementation

const factory Array.multi(List<int> dimensions) = _ArraySize<T>.multi;