clearCache static method

Future<void> clearCache()

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
  }
}