setSystemUIOverlayStyle method

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

Implementation

void setSystemUIOverlayStyle({
  required ThemeMode theme_mode,
  required Brightness Function() onChangeBrightness,
}) {
  SystemChrome.setSystemUIOverlayStyle(
    getSystemUiOverlayStyle(
      themeMode: theme_mode,
      onChangeBrightness: onChangeBrightness,
    ),
  );
}