ImmutableStruct constructor

ImmutableStruct(
  1. Pointer<NativeType> _pointer,
  2. Type _structType, {
  3. String debugName = 'Unnamed',
})

Constructs an ImmutableStruct for the given pointer and struct type.

  • pointer: The pointer to the struct.
  • structType: The type of the struct.
  • debugName: Optional name for debugging purposes.

Implementation

ImmutableStruct(this._pointer, this._structType,
    {String debugName = 'Unnamed'})
    : _debugName = debugName;