setThemeMode method

Future<void> setThemeMode(
  1. ThemeMode themeMode
)

Sets a specific theme mode.

Implementation

Future<void> setThemeMode(ThemeMode themeMode) async {
  await _themeService.setThemeMode(themeMode);
  state = themeMode;
}