WidgetbookStoryData constructor

WidgetbookStoryData({
  1. required String name,
  2. required String importStatement,
  3. required String typeDefinition,
  4. required List<String> dependencies,
  5. required String storyName,
  6. required String widgetName,
})

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,
      );