encodeTo method

void encodeTo(
  1. Output output
)

Encodes value of Enum to the HexOutput / ByteOutput

Implementation

void encodeTo(Output output) {
  output.pushByte(index);
}