SlabField class final

Declares one field of an optional generated Pulse Slab record schema.

kind selects the exact binary field type. byteOffset and alignment have the same meaning as their Field constructor counterparts. Set length only for SlabFieldKind.fixedBytes; it must be greater than zero. The generator reports invalid combinations and unsupported Dart field types as declaration diagnostics.

Constructors

SlabField({required SlabFieldKind kind, int? byteOffset, int? alignment, int? length})
Creates a declaration for one generated record field.
const

Properties

alignment int?
Optional explicit alignment for this generated field.
final
byteOffset int?
Optional explicit byte offset within the generated record.
final
hashCode int
The hash code for this object.
no setterinherited
kind SlabFieldKind
The exact binary representation generated for this Dart field.
final
length int?
Required positive fixed byte length for SlabFieldKind.fixedBytes.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited