copyWith method

ObjectNode copyWith({
  1. String? type,
  2. Location? loc,
  3. List<PropertyNode>? children,
})

Implementation

ObjectNode copyWith({
  String? type,
  Location? loc,
  List<PropertyNode>? children,
}) {
  return ObjectNode(
    type ?? this.type,
    loc ?? this.loc,
    children ?? this.children,
  );
}