indexOf method
Get the index of route in the collection.
Parameters
route: the route to search for.
Returns
int: zero-based index of the route, or GemError.notFound.code (negative) when the route is not found.
Implementation
int indexOf(final Route route) {
final OperationResult resultString = objectMethod(
pointerId,
'MapViewRouteCollection',
'indexOf',
args: route.pointerId,
dependencyId: mapPointerId,
);
return resultString['result'];
}