save static method
Saves a theme
with a key
.
See setThemeByKey to understand how to use the saved theme.
Implementation
static void save({required Object key, required Map<ThemeRef, Object> theme}) {
_saved[key] = theme;
if (_delayedThemeChangeByKey == key) {
_delayedThemeChangeByKey = null;
currentTheme = theme;
}
}