BlobByteSource constructor
BlobByteSource(
- Blob _blob, {
- 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');
}
}