copyWith method

AdmitSource copyWith({
  1. CodeableConcept? coding,
  2. Reference? admitter,
})

Creates a copy of the AdmitSource instance and allows for non-destructive mutation.

Implementation

AdmitSource copyWith({
  CodeableConcept? coding,
  Reference? admitter,
}) =>
    AdmitSource(
      coding: coding ?? this.coding,
      admitter: admitter ?? this.admitter,
    );