initState method

void initState({
  1. required BuildContext context,
  2. required ThemeMode themeMode,
  3. required void onSet(),
})

Implementation

void initState({
  required BuildContext context,
  required ThemeMode themeMode,
  required void Function() onSet,
}) {
  if (is_has_set_theme_status_bar_first == false) {
    is_has_set_theme_status_bar_first = true;
    autoChangeSystemUi(
      theme_mode: themeMode,
      onChangeBrightness: () {
        return context.mediaQueryData.platformBrightness;
      },
    );

    onSet();
  }
}