WidgetbookComponent constructor

WidgetbookComponent({
  1. required String name,
  2. required List<WidgetbookUseCase> useCases,
  3. bool isInitiallyExpanded = true,
  4. String? fileType,
})

Implementation

WidgetbookComponent({
  required super.name,
  required this.useCases,
  super.isInitiallyExpanded,
  super.fileType, // Changed to String for icon representation
}) : super(
        children: useCases, // Pass fileType as a String
      );