copyWith method
Appointment
copyWith({
- String? id,
- Meta? meta,
- AppointmentStatus? status,
- FixedList<
CodeableConcept> ? serviceCategory, - FixedList<
Participant> ? participant, - String? description,
Creates a copy of the Appointment instance and allows for non-destructive mutation.
Implementation
Appointment copyWith({
String? id,
Meta? meta,
AppointmentStatus? status,
FixedList<CodeableConcept>? serviceCategory,
FixedList<Participant>? participant,
String? description,
}) =>
Appointment(
id: id ?? this.id,
meta: meta ?? this.meta,
status: status ?? this.status,
serviceCategory: serviceCategory ?? this.serviceCategory,
participant: participant ?? this.participant,
description: description ?? this.description,
);