setThemeType method
Used by the UI to switch between themes. It will notify all the widgets that depends on the service to rebuild.
Implementation
void setThemeType(ThemeType type) {
themeType = type;
saveSettings();
notifyListeners();
}
Used by the UI to switch between themes. It will notify all the widgets that depends on the service to rebuild.
void setThemeType(ThemeType type) {
themeType = type;
saveSettings();
notifyListeners();
}