clearCache static method
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
}
}