downloadFile method

Downloads the object specified by key to localFile with optional onProgress and StorageDownloadFileOptions, and returns a StorageDownloadFileOperation.

Implementation

StorageDownloadFileOperation downloadFile({
  required String key,
  required AWSFile localFile,
  void Function(StorageTransferProgress)? onProgress,
  StorageDownloadFileOptions? options,
}) {
  return identifyCall(
    StorageCategoryMethod.downloadFile,
    () => defaultPlugin.downloadFile(
      key: key,
      localFile: localFile,
      onProgress: onProgress,
      options: options,
    ),
  );
}