clearCache static method
Clear the update cache
Implementation
static Future<void> clearCache() async {
try {
final cacheFile = await _getCacheFile();
if (cacheFile.existsSync()) {
await cacheFile.delete();
}
} catch (e) {
// Ignore errors
}
}