enumeration<T extends Enum> method

BorshEnumCodec<T> enumeration<T extends Enum>(
  1. List<T> values, [
  2. int? byteLength
])

Creates an enum codec.

A codec can encode/decode data types to/from byte arrays Iterable<u8> and Buffers.

Implementation

BorshEnumCodec<T> enumeration<T extends Enum>(
  final List<T> values, [
  final int? byteLength,
]) =>
    BorshEnumCodec(values, byteLength);