readBytes method Null safety

  1. @override
InputStreamBase readBytes(
  1. int count
)
override

Read count bytes from the stream.

Implementation

@override
InputStreamBase readBytes(int count) {
  count = min(count, fileRemaining);
  final bytes = InputFileStream.clone(this, position: _position,
      length: count);
  skip(count);
  return bytes;
}