removeFromCache function
Implementation
Future<bool> removeFromCache(String url, {bool useCacheRule = false}) async {
String uId = uid(url);
try {
if (useCacheRule) {
return await DiskCache().evict(uId);
} else {
await File(join((await getTemporaryDirectory()).path, 'imagecache', uId))
.delete();
return true;
}
} catch (e) {
print(e);
return false;
}
}