downloadData method
StorageDownloadDataOperation<StorageDownloadDataRequest, StorageDownloadDataResult<StorageItem> >
downloadData({
- required String key,
- void onProgress()?,
- StorageDownloadDataOptions? options,
Downloads bytes of object specified by key
into memory with optional
onProgress
and StorageDownloadDataOptions, and returns a
StorageDownloadDataOperation.
Ensure you are managing the data in memory properly to avoid unexpected memory leaks.
Implementation
StorageDownloadDataOperation downloadData({
required String key,
void Function(StorageTransferProgress)? onProgress,
StorageDownloadDataOptions? options,
}) {
return identifyCall(
StorageCategoryMethod.downloadData,
() => defaultPlugin.downloadData(
key: key,
onProgress: onProgress,
options: options,
),
);
}