WidgetbookUseCaseData constructor
WidgetbookUseCaseData({})
Implementation
factory WidgetbookUseCaseData({
// Name of the builder function defining the use-case
required String name,
// Name of the use-case, e.g. 'Default'
required String useCaseName,
// Name of the use-case, e.g. 'ElevatedButton'
// This will be extracted from the type
required String componentName,
// Import statement of the use-case definition
required String importStatement,
// Import statement of the component
required String componentImportStatement,
required List<String> dependencies,
// The path to the file containing the component
required String componentDefinitionPath,
// The path to the file containing the use-case definition
required String useCaseDefinitionPath,
}) = _WidgetbookUseCaseData;