clearSavedThemeByKey static method
Removes all saved themes.
Or, to remove just a specific saved theme, pass its key
.
Note: This will not change the current theme.
Implementation
static void clearSavedThemeByKey([Object? key]) {
if (key != null) {
_saved.remove(key);
if (_delayedThemeChangeByKey == key) _delayedThemeChangeByKey = null;
} else {
_delayedThemeChangeByKey = null;
_saved.clear();
}
}