setRoute method

Future<void> setRoute(
  1. MPRoute? route, {
  2. Map<num, MPRouteStopIconConfigInterface>? stopIcons,
})

Set a route to be rendered. This also resets the selected leg and step indices to 0.

Implementation

Future<void> setRoute(MPRoute? route,
    {Map<num, MPRouteStopIconConfigInterface>? stopIcons}) {
  return DirectionsRendererPlatform.instance.setRoute(route, stopIcons);
}