copyWith method

Node copyWith({
  1. String? id,
  2. String? type,
  3. String? name,
  4. String? key,
  5. List<String>? children,
  6. Map<String, String>? slots,
  7. bool? visible,
  8. double? opacity,
  9. Layout? layout,
  10. Decoration? decoration,
  11. Props? props,
  12. Map<String, String>? bind,
  13. List<Reaction>? actions,
  14. Behaviors? behaviors,
  15. ComponentLink? component,
  16. List<MediaRule>? media,
  17. 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,
    );