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