copyWith method
Creates a copy of the Bundle instance and allows for non-destructive mutation.
Implementation
Bundle copyWith({
String? id,
Meta? meta,
List<Extension>? extension,
List<Identifier>? identifier,
bool? active,
String? type,
String? name,
List<CodeableConcept>? code,
List<Participant>? participant,
List<Link>? link,
List<Entry>? entry,
}) =>
Bundle(
id: id ?? this.id,
meta: meta ?? this.meta,
extension: extension ?? this.extension,
identifier: identifier ?? this.identifier,
active: active ?? this.active,
type: type ?? this.type,
name: name ?? this.name,
code: code ?? this.code,
participant: participant ?? this.participant,
link: link ?? this.link,
entry: entry ?? this.entry,
);