ThemeInstance constructor
ThemeInstance({
- required WidgetbookThemeData theme,
Creates a new instance of ThemeInstance
Implementation
ThemeInstance({
required WidgetbookThemeData theme,
}) : super(
name: 'WidgetbookTheme',
properties: [
Property(
key: 'name',
instance: StringInstance.value(theme.themeName),
),
Property(
key: 'data',
instance: FunctionCallInstance(
name: theme.name,
),
),
],
);