clearCache static method

Future<void> clearCache()

Clears all cached styles (memory + disk).

Implementation

static Future<void> clearCache() async {
  _memoryCache.clear();
  try {
    final dir = await _getCacheDir();
    if (dir.existsSync()) {
      await dir.delete(recursive: true);
    }
  } catch (_) {
    // Silent fail
  }
}