setRoute method
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);
}