getBytes method Null safety

List<int> getBytes ()

Get the resulting bytes from the buffer.

Implementation

List<int> getBytes() {
  return Uint8List.view(_buffer.buffer, 0, length);
}