RefreshRouteOptions.withEVTruckOptions constructor

RefreshRouteOptions.withEVTruckOptions(
  1. EVTruckOptions evTruckOptions
)

Constructs a RefreshRouteOptions object with EVTruckOptions.

  • evTruckOptions Converts the route to an electric 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.withEVTruckOptions(EVTruckOptions evTruckOptions) => $prototype.withEVTruckOptions(evTruckOptions);