clearAll static method
Delete all cached files.
Implementation
static Future<void> clearAll() async {
final dir = Directory(await getCacheDir());
if (dir.existsSync()) {
await dir.delete(recursive: true);
await dir.create(recursive: true);
}
// Also clear metadata
await CacheMetadataStore.clearAll();
}