cacheAutoUpdate method

Future<void> cacheAutoUpdate(
  1. AdvImageCache key
)

Implementation

Future<void> cacheAutoUpdate(AdvImageCache key) async {
  try {
    String uid = key.url.hashCode.toString();
    final File file = await _getLocalFile(key.diskCacheDirName, uid);
    if (file.existsSync() && file.lengthSync() > 0) {
      await _cacheAutoUpdate(file, key);
    }
  } catch (e) {
    print(e.toString());
  }
}