readBytes method Null safety

List<int> readBytes()

Implementation

List<int> readBytes() {
  var length = readInt32();
  _checkLimit(length);
  return Uint8List.view(
      _buffer.buffer, _buffer.offsetInBytes + _bufferPos - length, length);
}