toBytes method
Concatenate the byte arrays and return them as a single unit.
Implementation
Uint8List toBytes() {
if (_bb == null) {
return _data.buffer.asUint8List(0, _offset);
}
_flush();
return _bb?.toBytes() ?? _emptyData.buffer.asUint8List();
}