isMainRoute method
Check whether route is marked as the main route in the collection.
Parameters
route: the route to check.
Returns
bool:truewhen the route is the current main route; otherwisefalse.
See also:
- mainRoute — The current main route in the collection, if any.
Implementation
bool isMainRoute(final Route route) {
final OperationResult resultString = objectMethod(
pointerId,
'MapViewRouteCollection',
'isMainRoute',
args: route.pointerId,
dependencyId: mapPointerId,
);
return resultString['result'];
}