WidgetbookNode constructor
WidgetbookNode({
- required String name,
- required List<
WidgetbookNode> ? children, - bool isInitiallyExpanded = true,
- String? fileType,
Implementation
WidgetbookNode({
required this.name,
required this.children,
this.isInitiallyExpanded = true,
this.fileType, // New optional parameter for icon type
}) {
children?.forEach(
(child) => child.parent = this,
);
}