downloadFile static method
下载图片并缓存
Implementation
static Future<File?> downloadFile(String url,
{bool useCache = true, String? cacheKey, String? cacheTag}) async {
await BaseWebImage.getNetworkImageData(url,
useCache: useCache, cacheKey: cacheKey, cacheTag: cacheTag);
return await cacheGetFile(url,
cacheKey: keyToTagMd5(url, cacheKey, cacheTag));
}