WidgetbookLeafComponent constructor

WidgetbookLeafComponent({
  1. required String name,
  2. required WidgetbookUseCase useCase,
  3. String? fileType,
})

Implementation

WidgetbookLeafComponent({
  required super.name,
  required this.useCase,
  super.fileType, // Changed to String for icon representation
}) : super(
        children: [useCase], // Pass fileType as a String
      );