OutputFileStream.withFileHandle constructor

OutputFileStream.withFileHandle(
  1. AbstractFileHandle _fileHandle, {
  2. int byteOrder = LITTLE_ENDIAN,
  3. int? bufferSize,
})

Implementation

OutputFileStream.withFileHandle(
  this._fileHandle, {
  this.byteOrder = LITTLE_ENDIAN,
  int? bufferSize,
})  : _length = 0,
      _buffer = Uint8List(bufferSize == null
          ? kDefaultBufferSize
          : bufferSize < 1
              ? 1
              : bufferSize),
      _bufferPosition = 0,
      _isOpen = true;