ZetaProvider constructor

ZetaProvider({
  1. Key? key,
  2. required ZetaAppBuilder builder,
  3. ThemeMode initialThemeMode = ThemeMode.system,
  4. ZetaContrast initialContrast = ZetaContrast.aa,
  5. ZetaThemeData? initialThemeData,
  6. ZetaThemeService? themeService,
  7. bool initialRounded = true,
})

Constructs a ZetaProvider widget.

The builder argument is required. The initialThemeMode, initialContrast, and initialThemeData arguments provide initial values.

Implementation

ZetaProvider({
  super.key,
  required this.builder,
  this.initialThemeMode = ThemeMode.system,
  this.initialContrast = ZetaContrast.aa,
  ZetaThemeData? initialThemeData,
  this.themeService,
  this.initialRounded = true,
})  : initialZetaThemeData = initialThemeData ?? ZetaThemeData(),
      baseBuilder = _emptyBase,
      initialLightThemeData = null,
      initialDarkThemeData = null;