copyWith method
Schedule
copyWith({
- String? id,
- Meta? meta,
- FixedList<
Identifier> ? identifier, - bool? active,
- FixedList<
CodeableConcept> ? serviceCategory, - FixedList<
CodeableConcept> ? serviceType, - FixedList<
CodeableConcept> ? specialty, - FixedList<
Reference> ? actor, - Period? planningHorizon,
- String? comment,
Creates a copy of the Schedule instance and allows for non-destructive mutation.
Implementation
Schedule copyWith({
String? id,
Meta? meta,
FixedList<Identifier>? identifier,
bool? active,
FixedList<CodeableConcept>? serviceCategory,
FixedList<CodeableConcept>? serviceType,
FixedList<CodeableConcept>? specialty,
FixedList<Reference>? actor,
Period? planningHorizon,
String? comment,
}) =>
Schedule(
id: id ?? this.id,
meta: meta ?? this.meta,
identifier: identifier ?? this.identifier,
active: active ?? this.active,
serviceCategory: serviceCategory ?? this.serviceCategory,
serviceType: serviceType ?? this.serviceType,
specialty: specialty ?? this.specialty,
actor: actor ?? this.actor,
planningHorizon: planningHorizon ?? this.planningHorizon,
comment: comment ?? this.comment,
);