getBytes property

Uint8List get getBytes
inherited

Flush and re-allocate new bytes, while saving the old bytes and returning them.

Implementation

Uint8List get getBytes {
  flush(ByteWriter.megaByte);
  var bytes = bytesBuilder.toBytes();
  allocate();
  return bytes;
}