toggleTheme method

void toggleTheme(
  1. bool isHighContrast
)

Implementation

void toggleTheme(bool isHighContrast) {
  if (isHighContrast) {
    setTheme(AppThemeMode.highContrastDark);
  } else {
    setTheme(AppThemeMode.light);
  }
}