InputFileStream constructor Null safety

InputFileStream(
  1. String path,
  2. {int byteOrder,
  3. int bufferSize = _kDefaultBufferSize}
)

Implementation

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