asBytes method

Uint8List asBytes()

Implementation

Uint8List asBytes() {
  final buffer = ByteDataWriter();
  applyToBuffer(buffer);
  return buffer.toBytes();
}