changeToDarkTheme method

Future<void> changeToDarkTheme()

Switches the app to ThemeMode.dark and updates system UI colours.

Implementation

Future<void> changeToDarkTheme() async {
  emit(const ThemeState(themeMode: ThemeMode.dark));
  _changeThemeOfStatusBarAndNavigationBar();
}