clearCache method

Future<void> clearCache()

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();
  }
}