clearCache static method

Future<void> clearCache()

Clear cache

Implementation

static Future<void> clearCache() async {
  final tempDir = await getTemporaryDirectory();
  final fileName = '${tempDir.path}/$outputFileName';
  if (File(fileName).existsSync()) {
    File(fileName).deleteSync();
    debugPrint("✅ Cache deleted");
  }
}