cacheGetFile static method

Future<File?> cacheGetFile(
  1. String url, {
  2. String? cacheKey,
  3. String? cacheTag,
})

取缓存文件

Implementation

static Future<File?> cacheGetFile(String url,
    {String? cacheKey, String? cacheTag}) async {
  var img = url;
  if (kWebImagePrefix != null && !img.startsWith("http")) {
    img = getJoin(kWebImagePrefix!, img);
  }
  return await hwCacheGetFile(img,
      cacheKey: keyToTagMd5(img, cacheKey, cacheTag));
}