downloadFile method
Download the file and add to cache
Implementation
@override
Future<FileInfo> downloadFile(String url, {String? key, Map<String, String>? authHeaders, bool force = false}) async {
key ??= url;
var fileResponse = await _webHelper
.downloadFile(
url,
key: key,
authHeaders: authHeaders,
ignoreMemCache: force,
)
.firstWhere((r) => r is FileInfo);
return fileResponse as FileInfo;
}