WidgetbookUseCaseData constructor

WidgetbookUseCaseData({
  1. required String name,
  2. required String useCaseName,
  3. required String componentName,
  4. required String importStatement,
  5. required String componentImportStatement,
  6. required List<String> dependencies,
  7. required String componentDefinitionPath,
  8. required String useCaseDefinitionPath,
})

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;