copyWith method

PublicRoutePart copyWith({
  1. List<PublicTransportInfo>? transports,
  2. List<PublicTransportStop>? intermediateStops,
})

Implementation

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