BorshEnumEncoder<T extends Enum> constructor

const BorshEnumEncoder<T extends Enum>([
  1. int? byteLength
])

Creates an encoder for enum data types.

Implementation

const BorshEnumEncoder([
  final int? byteLength,
]): byteLength = byteLength ?? ByteLength.u8;