copyWith method

  1. @override
WidgetbookLeafComponent copyWith({
  1. String? name,
  2. List<WidgetbookNode>? children,
})
override

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

Implementation

@override
WidgetbookLeafComponent copyWith({
  String? name,
  List<WidgetbookNode>? children,
}) {
  return this;
}