copyWithOutChild method

  1. @override
CNode copyWithOutChild({
  1. NodeID? id,
  2. NodeID? parentID,
  3. CNode? child,
  4. List<CNode>? children,
  5. String? name,
  6. String? description,
  7. double? childOrder,
  8. Map<String, dynamic>? attributes,
  9. RectProperties? rectProperties,
  10. DateTime? updatedAt,
  11. PageID? pageID,
  12. NodeID? stabilID,
  13. PageID? componentID,
  14. List<CNode>? componentChildren,
  15. bool? isLocked,
})

Copy the node with new attributes

Implementation

@override
CNode copyWithOutChild({
  NodeID? id,
  NodeID? parentID,
  CNode? child,
  List<CNode>? children,
  String? name,
  String? description,
  double? childOrder,
  Map<String, dynamic>? attributes,
  RectProperties? rectProperties,
  DateTime? updatedAt,
  PageID? pageID,
  NodeID? stabilID,
  PageID? componentID,
  List<CNode>? componentChildren,
  bool? isLocked,
}) =>
    SpacerOpenNode(
      id: id ?? this.id,
      parentID: parentID ?? this.parentID,
      child: child,
      children: children ?? this.children,
      name: name ?? this.name,
      description: description ?? this.description,
      childOrder: childOrder ?? this.childOrder,
      attributes: attributes ?? getAttributes,
      rectProperties: rectProperties ?? getRectProperties,
      pageID: pageID ?? this.pageID,
      stabilID: stabilID ?? this.stabilID,
      componentID: componentID ?? this.componentID,
      componentChildren: componentChildren ?? this.componentChildren,
      isLocked: isLocked ?? this.isLocked,
    );