InputFileStream.clone constructor Null safety

InputFileStream.clone(
  1. InputFileStream other,
  2. {int? position,
  3. int? length}
)

Implementation

InputFileStream.clone(InputFileStream other, {int? position, int? length})
  : path = other.path
  , _file = other._file
  , byteOrder = other.byteOrder
  , _fileOffset = other._fileOffset + (position ?? 0)
  , _fileSize = length ?? other._fileSize
  , _buffer = Uint8List(kDefaultBufferSize) {
  _readBuffer();
}