copyWith method

PublicTransportIntervalSchedule copyWith({
  1. int? period,
  2. Optional<PublicTransportIntervalWorkingHours?>? workHours,
})

Implementation

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