StructField constructor

const StructField(
  1. int offset, {
  2. int size = 1,
  3. bool packed = false,
})

Constructs a StructField annotation.

  • offset: The offset of the field within the struct.
  • size: The size of the field. Defaults to 1.
  • packed: Whether the field is packed. Defaults to false.

Implementation

const StructField(this.offset, {this.size = 1, this.packed = false});