onDirectionsRequested method

void onDirectionsRequested(
  1. OnDirectionsRequestedCallback callback
)

Get notified when the user requests a route to any destination.

Implementation

void onDirectionsRequested(OnDirectionsRequestedCallback callback) {
  _onDirectionsRequestedCallback = callback;
}