WidgetbookStoryData.fromResolver constructor

WidgetbookStoryData.fromResolver(
  1. Element element,
  2. Element typeElement,
  3. String storyName,
  4. String widgetName,
)

Obtains a WidgetbookStoryData object from classes provided by the StoryResolver

Implementation

factory WidgetbookStoryData.fromResolver(
  Element element,
  Element typeElement,
  String storyName,
  String widgetName,
) {
  return WidgetbookStoryData(
    name: element.name!,
    importStatement: element.importStatement,
    typeDefinition: typeElement.importStatement,
    dependencies: typeElement.dependencies,
    storyName: storyName,
    widgetName: widgetName,
  );
}