copyWith method
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,
);
}