setRoute method

Future<void> setRoute(
  1. MPRoute? route
)

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

Implementation

Future<void> setRoute(MPRoute? route) =>
    DirectionsRendererPlatform.instance.setRoute(route);