EnumExtensions<T extends Enum> extension

Usage:

enum TestEnum { a, b, c }

void main() {
  final output = HexOutput();

  TestEnum.b.encodeTo(output);

  print(output.toString()); // 0x00
}
on
  • T

Methods

encodeTo(Output output) → void
Encodes value of Enum to the HexOutput / ByteOutput