copyWith method
PublicRoutePart
copyWith({
- List<
PublicTransportInfo> ? transports, - List<
PublicTransportStop> ? intermediateStops,
Implementation
PublicRoutePart copyWith({
List<PublicTransportInfo>? transports,
List<PublicTransportStop>? intermediateStops
}) {
return PublicRoutePart(
transports: transports ?? this.transports,
intermediateStops: intermediateStops ?? this.intermediateStops
);
}