copyWith method

  1. @override
CNode copyWith({
  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,
  16. List<String>? requiredAttributes,
  17. Map<String, dynamic>? appBarAttributes,
  18. Map<String, dynamic>? bottomBarAttributes,
})
override

Copy the node with new attributes

Implementation

@override
CNode copyWith({
  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,
  List<String>? requiredAttributes,
  Map<String, dynamic>? appBarAttributes,
  Map<String, dynamic>? bottomBarAttributes,
}) =>
    ScaffoldOpenNode(
      id: id ?? this.id,
      parentID: parentID ?? this.parentID,
      child: child ?? this.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,
      isLocked: isLocked ?? this.isLocked,
      requiredAttributes: requiredAttributes ?? this.requiredAttributes,
      appBarAttributes: appBarAttributes ?? this.appBarAttributes,
      bottomBarAttributes: bottomBarAttributes ?? this.bottomBarAttributes,
    );