clearCache static method
dynamic
clearCache()
Implementation
static clearCache() async {
//此处展示加载loading
try {
Directory tempDir = await getTemporaryDirectory();
//删除缓存目录
await delDir(tempDir);
// await loadCache();
//ToastUtil.show('清除缓存成功');
} catch (e) {
print(e);
//ToastUtil.show('清除缓存失败');
} finally {
//此处隐藏加载loading
}
}