operator [] method

T operator [] (
  1. int index
)

Creates a reference to access the fields of this struct backed by native memory at address + sizeOf<T>() * index.

The address must be aligned according to the struct alignment rules of the platform.

Support for invoking this extension method with non-constant T will be removed in the next stable version of Dart and it will become mandatory to invoke it with a compile-time constant T.

Implementation

external T operator [](int index);

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.13.0/dart-ffi/StructPointer/operator_get.html