clearCache method
Clear the in-memory and on-disk cache.
Implementation
Future<void> clearCache() async {
_remote.clear();
final file = File(_cachePath);
if (await file.exists()) {
await file.delete();
}
}
Clear the in-memory and on-disk cache.
Future<void> clearCache() async {
_remote.clear();
final file = File(_cachePath);
if (await file.exists()) {
await file.delete();
}
}