copyWith method

Practitioner copyWith({
  1. String? id,
  2. Meta? meta,
  3. FixedList<Identifier>? identifier,
  4. bool? active,
  5. FixedList<HumanName>? name,
  6. FixedList<ContactPoint>? telecom,
  7. FixedList<Address>? address,
  8. AdministrativeGender? gender,
  9. DateTime? birthDate,
  10. List<Attachment>? photo,
  11. List<CodeableConcept>? qualification,
  12. List<CodeableConcept>? communication,
})

Creates a copy of the Practitioner instance and allows for non-destructive mutation.

Implementation

Practitioner copyWith({
  String? id,
  Meta? meta,
  FixedList<Identifier>? identifier,
  bool? active,
  FixedList<HumanName>? name,
  FixedList<ContactPoint>? telecom,
  FixedList<Address>? address,
  AdministrativeGender? gender,
  DateTime? birthDate,
  List<Attachment>? photo,
  List<CodeableConcept>? qualification,
  List<CodeableConcept>? communication,
}) =>
    Practitioner(
      id: id ?? this.id,
      meta: meta ?? this.meta,
      identifier: identifier ?? this.identifier,
      active: active ?? this.active,
      name: name ?? this.name,
      telecom: telecom ?? this.telecom,
      address: address ?? this.address,
      gender: gender ?? this.gender,
      birthDate: birthDate ?? this.birthDate,
      photo: photo ?? this.photo,
      qualification: qualification ?? this.qualification,
      communication: communication ?? this.communication,
    );