copyWith method
PublicTransportIntervalSchedule
copyWith({
- int? period,
- Optional<
PublicTransportIntervalWorkingHours?> ? workHours,
Implementation
PublicTransportIntervalSchedule copyWith({
int? period,
Optional<PublicTransportIntervalWorkingHours?>? workHours
}) {
return PublicTransportIntervalSchedule(
period: period ?? this.period,
workHours: workHours != null ? workHours.value : this.workHours
);
}