WidgetbookUseCase.child constructor
WidgetbookUseCase.child({})
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
);
}