encode method

Uint8List encode()

Implementation

Uint8List encode() {
  final output = ByteOutput(codec.sizeHint(this));
  codec.encodeTo(this, output);
  return output.toBytes();
}