copyWith method
HealthIncident
copyWith({
- String? startDate,
- String? endDate,
- String? title,
- List<
IncidentUpdate> ? incidentUpdates,
Implementation
HealthIncident copyWith(
{String? startDate,
String? endDate,
String? title,
List<IncidentUpdate>? incidentUpdates}) {
return HealthIncident(
startDate: startDate ?? this.startDate,
endDate: endDate ?? this.endDate,
title: title ?? this.title,
incidentUpdates: incidentUpdates ?? this.incidentUpdates);
}