WidgetbookUseCase.child constructor

WidgetbookUseCase.child({
  1. required String name,
  2. required Widget child,
  3. String? designLink,
  4. String? fileType,
})

Implementation

factory WidgetbookUseCase.child({
  required String name,
  required Widget child,
  String? designLink,
  String? fileType, // Changed to String for icon representation
}) {
  return WidgetbookUseCase(
    name: name,
    designLink: designLink,
    builder: (_) => child,
    fileType: fileType, // Pass fileType as a String
  );
}