copyWith method

Bundle copyWith({
  1. String? id,
  2. Meta? meta,
  3. List<Extension>? extension,
  4. List<Identifier>? identifier,
  5. bool? active,
  6. String? type,
  7. String? name,
  8. List<CodeableConcept>? code,
  9. List<Participant>? participant,
  10. List<Link>? link,
  11. List<Entry>? entry,
})

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,
    );