copyWith method

Schedule copyWith({
  1. String? id,
  2. Meta? meta,
  3. FixedList<Identifier>? identifier,
  4. bool? active,
  5. FixedList<CodeableConcept>? serviceCategory,
  6. FixedList<CodeableConcept>? serviceType,
  7. FixedList<CodeableConcept>? specialty,
  8. FixedList<Reference>? actor,
  9. Period? planningHorizon,
  10. 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,
    );