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 -
Available on T, provided by the EnumExtensions extension
Encodes value of Enum to the HexOutput / ByteOutput