WidgetbookStoryData.fromResolver constructor
WidgetbookStoryData.fromResolver()
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,
);
}