onAlternativesRequested abstract method

void onAlternativesRequested(
  1. DrivingRoute currentRoute
)

Calls when a user requested alternatives for the current route. After this callback Navigation will have the current route and fastest alternative route (if available) in Navigation.routes()

Implementation

void onAlternativesRequested(
    directions_driving_route.DrivingRoute currentRoute);