switchAppearance method

void switchAppearance()

Toggles the appearance between light and dark modes and stores it.

Implementation

void switchAppearance() {
  appearanceNotifier.value = isLight() ? Appearance.dark : Appearance.light;
  storeAppearance();
  _updateColors();
}