selectLegIndex method

Future<void> selectLegIndex(
  1. int legIndex
)

Manually set the selected leg index on the route.

This may throw an exception if the resulting internal state is invalid (parsed index is out of bounds)

Implementation

Future<void> selectLegIndex(int legIndex) =>
    DirectionsRendererPlatform.instance.selectLegIndex(legIndex);