enumeration<T extends Enum> method
Creates an enum
codec.
A codec can encode/decode data types to/from byte arrays Iterable<u8>
and Buffer
s.
Implementation
BorshEnumCodec<T> enumeration<T extends Enum>(
final List<T> values, [
final int? byteLength,
]) =>
BorshEnumCodec(values, byteLength);