copyWith method
PublicTransportRouteSearchOptions
copyWith({
- Optional<
DateTime?> ? startTime, - bool? useSchedule,
- 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
);
}