toBytes method
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();
}
Converts this PackStream data type to a byte array.
This is a convenience method that calls toByteData and converts the result to a Uint8List.
Uint8List toBytes() {
return toByteData().buffer.asUint8List();
}