BorshEnumEncoder<T extends Enum> constructor
const
BorshEnumEncoder<T extends Enum> ([
- int? byteLength
Creates an encoder for enum data types.
Implementation
const BorshEnumEncoder([
final int? byteLength,
]): byteLength = byteLength ?? ByteLength.u8;