copyWith method
Node
copyWith({
- String? id,
- String? type,
- String? name,
- String? key,
- List<
String> ? children, - Map<
String, String> ? slots, - bool? visible,
- double? opacity,
- Layout? layout,
- Decoration? decoration,
- Props? props,
- Map<
String, String> ? bind, - List<
Reaction> ? actions, - Behaviors? behaviors,
- ComponentLink? component,
- List<
MediaRule> ? media, - Json? extra,
Implementation
Node copyWith({
String? id,
String? type,
String? name,
String? key,
List<String>? children,
Map<String, String>? slots,
bool? visible,
double? opacity,
Layout? layout,
Decoration? decoration,
Props? props,
Map<String, String>? bind,
List<Reaction>? actions,
Behaviors? behaviors,
ComponentLink? component,
List<MediaRule>? media,
Json? extra,
}) =>
Node(
id: id ?? this.id,
type: type ?? this.type,
name: name ?? this.name,
key: key ?? this.key,
children: children ?? this.children,
slots: slots ?? this.slots,
visible: visible ?? this.visible,
opacity: opacity ?? this.opacity,
layout: layout ?? this.layout,
decoration: decoration ?? this.decoration,
props: props ?? this.props,
bind: bind ?? this.bind,
actions: actions ?? this.actions,
behaviors: behaviors ?? this.behaviors,
component: component ?? this.component,
media: media ?? this.media,
extra: extra ?? this.extra,
catalog: catalog,
);