copyWith method
Slot
copyWith({
- String? id,
- Meta? meta,
- FixedList<
Identifier> ? identifier, - List<
CodeableConcept> ? serviceCategory, - List<
CodeableConcept> ? serviceType, - List<
CodeableConcept> ? specialty, - CodeableConcept? appointmentType,
- String? schedule,
- SlotStatus? status,
- DateTime? start,
- DateTime? end,
- bool? overbooked,
- String? comment,
Creates a copy of the Slot instance and allows for non-destructive mutation.
Implementation
Slot copyWith({
String? id,
Meta? meta,
FixedList<Identifier>? identifier,
List<CodeableConcept>? serviceCategory,
List<CodeableConcept>? serviceType,
List<CodeableConcept>? specialty,
CodeableConcept? appointmentType,
String? schedule,
SlotStatus? status,
DateTime? start,
DateTime? end,
bool? overbooked,
String? comment,
}) =>
Slot(
id: id ?? this.id,
meta: meta ?? this.meta,
identifier: identifier ?? this.identifier,
serviceCategory: serviceCategory ?? this.serviceCategory,
serviceType: serviceType ?? this.serviceType,
specialty: specialty ?? this.specialty,
appointmentType: appointmentType ?? this.appointmentType,
schedule: schedule ?? this.schedule,
status: status ?? this.status,
start: start ?? this.start,
end: end ?? this.end,
overbooked: overbooked ?? this.overbooked,
comment: comment ?? this.comment,
);