autoChangeTheme method

ThemeMode autoChangeTheme({
  1. required Brightness onChangeBrightness(),
})

Implementation

ThemeMode autoChangeTheme(
    {required Brightness Function() onChangeBrightness}) {
  ThemeMode theme_mode = autoChangeThemeMode();
  autoChangeSystemUi(
      theme_mode: theme_mode, onChangeBrightness: onChangeBrightness);
  notifyListeners();
  return theme_mode;
}