clearAllButMainRoute method
void
clearAllButMainRoute()
Remove all secondary routes, leaving the main route in the collection.
Useful when you want to keep the currently selected main route visible while removing alternative suggestions.
See also:
- clear — Remove all routes from the collection.
Implementation
void clearAllButMainRoute() {
objectMethod(
pointerId,
'MapViewRouteCollection',
'clearAllButMainRoute',
dependencyId: mapPointerId,
);
}