WidgetbookStoryData constructor
WidgetbookStoryData({})
Creates a new instance of WidgetbookStoryData
name
is defined as the identifier of the annotated element
importStatement
is the statement required to include the annotated
element in the Widgetbook
dependencies
are the import statements defined in the file in which the
annotation is used
storyName
is the name of the Story provided as a parameter of the
WidgetbookStory annotation
widgetName
is the String version of the Widget type
Implementation
WidgetbookStoryData({
required String name,
required String importStatement,
required this.typeDefinition,
required List<String> dependencies,
required this.storyName,
required this.widgetName,
}) : super(
name: name,
importStatement: importStatement,
dependencies: dependencies,
);