copyWith method

XmlMeta copyWith({
  1. Map<String, String>? attributes,
  2. bool? isCdata,
  3. String? comment,
  4. String? namespace,
  5. String? prefix,
})

Creates a copy with updated values.

Implementation

XmlMeta copyWith({
  Map<String, String>? attributes,
  bool? isCdata,
  String? comment,
  String? namespace,
  String? prefix,
}) {
  return XmlMeta(
    attributes: attributes ?? this.attributes,
    isCdata: isCdata ?? this.isCdata,
    comment: comment ?? this.comment,
    namespace: namespace ?? this.namespace,
    prefix: prefix ?? this.prefix,
  );
}