copyWith abstract method

WidgetbookNode copyWith({
  1. String? name,
  2. List<WidgetbookNode>? children,
  3. String? fileType,
})

Creates a copy of this node with the given properties. Used in filter to create a copy of the sub-tree.

Implementation

WidgetbookNode copyWith({
  String? name,
  List<WidgetbookNode>? children,
  String? fileType, // Added fileType to copyWith method
});