copyWith method

PublicTransportRouteSearchOptions copyWith({
  1. Optional<DateTime?>? startTime,
  2. bool? useSchedule,
  3. PublicTransportTypeEnumSet? transportTypes,
})

Implementation

PublicTransportRouteSearchOptions copyWith({
  Optional<DateTime?>? startTime,
  bool? useSchedule,
  PublicTransportTypeEnumSet? transportTypes
}) {
  return PublicTransportRouteSearchOptions(
    startTime: startTime != null ? startTime.value : this.startTime,
    useSchedule: useSchedule ?? this.useSchedule,
    transportTypes: transportTypes ?? this.transportTypes
  );
}