copyWith method
Creates a copy of this node with the given properties. Used in filter to create a copy of the sub-tree.
Implementation
@override
WidgetbookCategory copyWith({
String? name,
List<WidgetbookNode>? children,
}) {
return WidgetbookCategory(
name: name ?? this.name,
children: children ?? this.children,
isInitiallyExpanded: isInitiallyExpanded,
);
}