ZetaProvider.base constructor

ZetaProvider.base({
  1. Key? key,
  2. required ZetaBaseAppBuilder builder,
  3. ThemeMode initialThemeMode = ThemeMode.system,
  4. ZetaContrast initialContrast = ZetaContrast.aa,
  5. ZetaThemeData? initialZetaThemeData,
  6. ThemeData? initialLightThemeData,
  7. ThemeData? initialDarkThemeData,
  8. bool initialRounded = true,
})

ZetaProvider constructor that returns light and dark ThemeDatas ready to be consumed.

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

Implementation

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