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