downloadFile method

Future<FileInfo> downloadFile(
  1. String url, {
  2. Map<String, String>? headers,
})

Download file and put in cache

Implementation

Future<FileInfo> downloadFile(
  String url, {
  Map<String, String>? headers,
}) async {
  return await cacheManager.downloadFile(url, authHeaders: headers);
}