clearCache static method

Future<void> clearCache()

Optional: Clear cache

Implementation

static Future<void> clearCache() async {
  final file = await _getCacheFile();
  if (await file.exists()) {
    await file.delete();
    if (kDebugMode) {
      print("🧹 Cleared message cache");
    }
  }
}