sortingStrategy property
Public transport route sorting strategy.
Determines how public transport routes are sorted when multiple options are available. Options include best time, fewest transfers, or shortest walking distance. Only applies to RouteTransportMode.public.
Default is PTSortingStrategy.bestTime.
Implementation
PTSortingStrategy get sortingStrategy {
final OperationResult resultString = objectMethod(
pointerId,
'RoutePrefWrapper',
'getSortingStrategy',
);
return PTSortingStrategyExtension.fromId(resultString['result']);
}
Public transport route sorting strategy.
Determines how public transport routes are sorted when multiple options are available. Options include best time, fewest transfers, or shortest walking distance. Only applies to RouteTransportMode.public.
Parameters
value: The sorting strategy to use.
Default is PTSortingStrategy.bestTime.
Implementation
set sortingStrategy(final PTSortingStrategy value) {
objectMethod(
pointerId,
'RoutePrefWrapper',
'sortingstrategy',
args: value.id,
);
}