set method
Sets the preference, persists it, and re-applies.
Implementation
void set(ThemeMode next) {
mode.value = next;
_settings.theme = next.name;
_applyNow();
}
Sets the preference, persists it, and re-applies.
void set(ThemeMode next) {
mode.value = next;
_settings.theme = next.name;
_applyNow();
}