BorshEnumCodec<T extends Enum> constructor

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

Creates a codec for enum data types.

Implementation

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