routingPreference property
Specifies preferences for transit routes. Using this parameter, you can bias the options returned, rather than accepting the default best route chosen by the API. This parameter may only be specified for transit directions. The parameter supports the following arguments:
lessWalking
indicates that the calculated route should prefer limited amounts of walking.fewerTransfers
indicates that the calculated route should prefer a limited number of transfers.
Implementation
final TransitRoutingPreference? routingPreference;