copyWithWrapped method

HealthIncident copyWithWrapped({
  1. Wrapped<DateTime>? startDate,
  2. Wrapped<DateTime?>? endDate,
  3. Wrapped<String>? title,
  4. Wrapped<List<IncidentUpdate>>? incidentUpdates,
})

Implementation

HealthIncident copyWithWrapped(
    {Wrapped<DateTime>? startDate,
    Wrapped<DateTime?>? endDate,
    Wrapped<String>? title,
    Wrapped<List<IncidentUpdate>>? incidentUpdates}) {
  return HealthIncident(
      startDate: (startDate != null ? startDate.value : this.startDate),
      endDate: (endDate != null ? endDate.value : this.endDate),
      title: (title != null ? title.value : this.title),
      incidentUpdates: (incidentUpdates != null
          ? incidentUpdates.value
          : this.incidentUpdates));
}