switchTheme method

ArcaneReactiveTheme switchTheme()

Switches the current theme between light and dark modes.

If the theme is currently light, it switches to dark, and vice versa. It also notifies listeners to update the UI accordingly.

Example:

ArcaneReactiveTheme.I.switchTheme();

Implementation

ArcaneReactiveTheme switchTheme() {
  _isDark = !_isDark;
  notifyListeners();

  return I;
}