fetchToStorage static method

Future<String> fetchToStorage(
  1. String url,
  2. String key, {
  3. UStorageBucket bucket = UStorageBucket.support,
  4. Map<String, String> headers = const <String, String>{},
  5. void onProgress(
    1. double progress
    )?,
  6. UChecksum? checksum,
  7. Duration? expireIn,
  8. bool persistent = true,
})

Downloads silently into app storage and returns key when done.

Implementation

static Future<String> fetchToStorage(
  String url,
  String key, {
  UStorageBucket bucket = UStorageBucket.support,
  Map<String, String> headers = const <String, String>{},
  void Function(double progress)? onProgress,
  UChecksum? checksum,
  Duration? expireIn,
  bool persistent = true,
}) => _m.fetchToStorage(url, key, bucket: bucket, headers: headers, onProgress: onProgress, checksum: checksum, expireIn: expireIn, persistent: persistent);