updateCustomTheme method
- required String? themeId,
Updates the current custom theme.
The id of the theme must correspond to a ZetaCustomTheme object in the customThemes list.
If themeId
is null or a corresponding theme cannot be found, the default theme is used.
Implementation
void updateCustomTheme({
required String? themeId,
}) {
setState(() {
_customTheme = _customThemes[themeId];
_saveThemeChange();
});
}