selectMode method
Selects mode, falling back to ThemeMode.system when null, and keeps
the current theme.
Implementation
void selectMode(ThemeMode? mode) =>
updateTheme(state.theme, mode ?? ThemeMode.system);
Selects mode, falling back to ThemeMode.system when null, and keeps
the current theme.
void selectMode(ThemeMode? mode) =>
updateTheme(state.theme, mode ?? ThemeMode.system);