RefreshRouteOptions.withTruckOptions constructor

RefreshRouteOptions.withTruckOptions(
  1. TruckOptions truckOptions
)

Constructs a RefreshRouteOptions object with TruckOptions.

  • truckOptions Converts the route to a truck route, if a different transport mode was used for the RouteHandle. Note that in case this is not possible, an RoutingError.noRouteFound error will be triggered.

Implementation

factory RefreshRouteOptions.withTruckOptions(TruckOptions truckOptions) => $prototype.withTruckOptions(truckOptions);