toBytes method

Uint8List toBytes()

Converts this PackStream data type to a byte array.

This is a convenience method that calls toByteData and converts the result to a Uint8List.

Implementation

Uint8List toBytes() {
  return toByteData().buffer.asUint8List();
}