clearAllItems method
Implementation
Future<bool> clearAllItems({String diskCacheDirName = "AdvImageCache"}) async {
try {
PaintingBinding.instance.imageCache.clear();
Directory localDir = await _getLocalDir(diskCacheDirName);
if (localDir.existsSync()) await localDir.delete(recursive: true);
return true;
} catch (e) {
print(e);
}
return false;
}