ThemeAddon<T> constructor
ThemeAddon<T> ({
- required List<
WidgetbookTheme< themes,T> > - WidgetbookTheme<
T> ? initialTheme, - required ThemeBuilder<
T> themeBuilder,
Implementation
ThemeAddon({
required this.themes,
this.initialTheme,
required this.themeBuilder,
}) : assert(
themes.isNotEmpty,
'themes cannot be empty',
),
assert(
initialTheme == null || themes.contains(initialTheme),
'initialTheme must be in themes',
),
super(
name: 'Theme',
);