Skip to content

StructArray<T extends Struct>

extension StructArray<T extends Struct> on Array<T>

Annotations: @Since.new('2.13')

Bounds checking indexing methods on Arrays of Struct.

Properties

elements extension no setter

List<T> get elements

A list view of the bytes of this array.

Has the same length and elements (as accessed using the index operator) as this array.

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

Implementation
dart
@Since('3.8')
external List<T> get elements;

Operators

operator extension

T operator [](int index)

This extension method must be invoked on a receiver of type Pointer<T> where T is a compile-time constant type.

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

Implementation
dart
external T operator [](int index);