copyWithWrapped method
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));
}