nextTheme method

void nextTheme()

Cycle to next theme in the theme list. The sequence is determined by the sequence specified in the ThemeProvider in the themes parameter.

Implementation

void nextTheme() {
  int nextThemeIndex = (_currentThemeIndex + 1) % _appThemes.length;
  _setThemeByIndex(nextThemeIndex);
}