autoChangeSystemUi method

void autoChangeSystemUi({
  1. required ThemeMode theme_mode,
  2. required Brightness onChangeBrightness(),
})

Implementation

void autoChangeSystemUi({
  required ThemeMode theme_mode,
  required Brightness Function() onChangeBrightness,
}) {
  setSystemUIOverlayStyle(
    theme_mode: theme_mode,
    onChangeBrightness: onChangeBrightness,
  );

  notifyListeners();
}