readInto method Null safety

int readInto(
  1. Uint8List buffer,
  2. [int? end]
)

Implementation

int readInto(Uint8List buffer, [int? end]) {
  if (_file == null) {
    open();
  }
  final size = _file!.readIntoSync(buffer, 0, end);
  _position += size;
  return size;
}