copyWith method

Appointment copyWith({
  1. String? id,
  2. Meta? meta,
  3. AppointmentStatus? status,
  4. FixedList<CodeableConcept>? serviceCategory,
  5. FixedList<Participant>? participant,
  6. 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,
    );