setThemeMode method
Sets the active theme mode (system, light, dark).
Implementation
void setThemeMode(ConsonaThemeMode mode) {
if (themeMode == mode) return;
themeMode = mode;
storage?.write(_storageKeyMode, mode.name);
notifyListeners();
}
Sets the active theme mode (system, light, dark).
void setThemeMode(ConsonaThemeMode mode) {
if (themeMode == mode) return;
themeMode = mode;
storage?.write(_storageKeyMode, mode.name);
notifyListeners();
}