BlobByteSource constructor

BlobByteSource(
  1. Blob _blob, {
  2. int chunkSize = 4 * 1024 * 1024,
})

Creates a source that reads the Blob in chunks up to chunkSize.

Implementation

BlobByteSource(this._blob, {this.chunkSize = 4 * 1024 * 1024})
  : _bounds = ByteRange(0, _blob.size) {
  if (chunkSize <= 0) {
    throw ArgumentError.value(chunkSize, 'chunkSize', 'must be positive');
  }
}