WidgetbookNode constructor

WidgetbookNode({
  1. required String name,
  2. required List<WidgetbookNode>? children,
  3. bool isInitiallyExpanded = true,
  4. 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,
  );
}