copyWith method

PropertyNode copyWith({
  1. List<Node>? children,
  2. int? index,
  3. ValueNode? key,
  4. Node? value,
  5. String? type,
  6. Location? loc,
})

Implementation

PropertyNode copyWith({
  List<Node>? children,
  int? index,
  ValueNode? key,
  Node? value,
  String? type,
  Location? loc,
}) {
  return PropertyNode(
    children: children ?? this.children,
    index: index ?? this.index,
    key: key ?? this.key,
    value: value ?? this.value,
    type: type ?? this.type,
    loc: loc ?? this.loc,
  );
}