copyWith method

  1. @override
Story<TWidget, TArgs> copyWith({
  1. String? name,
  2. List<WidgetbookNode>? children,
  3. String? fileType,
})
override

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

Implementation

@override
Story<TWidget, TArgs> copyWith({
  String? name,
  List<v3.WidgetbookNode>? children,
  String? fileType, // Changed to String for icon representation
}) {
  return this; // Retain same instance, as Story is likely intended to be immutable
}