RefreshRouteOptions.withEVCarOptions constructor

RefreshRouteOptions.withEVCarOptions(
  1. EVCarOptions evCarOptions
)

Constructs a RefreshRouteOptions object with EVCarOptions.

  • evCarOptions Converts the route to an electric car 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.withEVCarOptions(EVCarOptions evCarOptions) => $prototype.withEVCarOptions(evCarOptions);