ZetaProvider.base constructor
- Key? key,
- required ZetaBaseAppBuilder builder,
- ThemeMode initialThemeMode = ThemeMode.system,
- ZetaContrast initialContrast = ZetaContrast.aa,
- ZetaThemeData? initialZetaThemeData,
- ThemeData? initialLightThemeData,
- ThemeData? initialDarkThemeData,
- 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;