Array<T extends NativeType>.multi constructor
Null safety
Const constructor to specify Array dimensions in Structs.
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;