InputFileStream.file constructor Null safety

InputFileStream.file(
  1. File file,
  2. {int byteOrder,
  3. int bufferSize = _kDefaultBufferSize}
)

Implementation

InputFileStream.file(File file,
    {this.byteOrder = LITTLE_ENDIAN, int bufferSize = _kDefaultBufferSize})
    : path = file.path,
      _file = file.openSync(),
      _buffer = Uint8List(bufferSize) {
  _fileSize = _file.lengthSync();
  _readBuffer();
}