ZetaProvider constructor
- Key? key,
- required ZetaAppBuilder builder,
- ThemeMode initialThemeMode = ThemeMode.system,
- ZetaContrast initialContrast = ZetaContrast.aa,
- ZetaThemeData? initialThemeData,
- ZetaThemeService? themeService,
- 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;