setThemeMode method

void setThemeMode(
  1. ThemeMode mode
)

Changes the current theme mode

Implementation

void setThemeMode(ThemeMode mode) {
  if (_themeMode == mode) return;
  _themeMode = mode;
  _updateTheme();
}