setTravelMode method

Future<void> setTravelMode(
  1. String travelMode
)

defines the travel mode for routes, can be one of the following:

walking

bicycling

driving

transit

Implementation

Future<void> setTravelMode(String travelMode) =>
    DirectionsServicePlatform.instance.setTravelMode(travelMode);