copyWith method

HealthIncident copyWith({
  1. String? startDate,
  2. String? endDate,
  3. String? title,
  4. 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);
}