StructPointer<T extends Struct> extension Null safety

Extension on Pointer specialized for the type argument Struct.

on
Annotations
  • @Since('2.12')

Properties

ref ↔ T
A Dart view of the struct referenced by this pointer.
read / write

Operators

operator [](int index) → T
Creates a reference to access the fields of this struct backed by native memory at address + sizeOf<T>() * index.
operator []=(int index, T value) → void
Copies the value struct into native memory, starting at address * sizeOf<T>() * index.