switchAppearance method
void
switchAppearance()
Toggles the appearance between light and dark modes and stores it.
Implementation
void switchAppearance() {
appearanceNotifier.value = appearanceNotifier.value == Appearance.light
? Appearance.dark
: Appearance.light;
storeAppearance();
}