operator [] method Null safety

Pointer<T> operator [] (
  1. int index
)

Load a Dart value from this location offset by index.

A Pointer is unboxed before being stored (as if by .address), and the pointer is boxed (as if by Pointer.fromAddress) when loaded.

On 32-bit platforms the address must be 4-byte aligned, and on 64-bit platforms the address must be 8-byte aligned.

Implementation

external Pointer<T> operator [](int index);