indexOf method

int indexOf(
  1. Route route
)

Get the index of the specified route

Parameters

  • IN route The route to be found

Returns

  • The index of the route in the collection
  • GemError.notFound.code if the route is not in the collection

Throws

  • An exception if it fails.

Implementation

int indexOf(final Route route) {
  final OperationResult resultString = objectMethod(
    pointerId,
    'MapViewRouteCollection',
    'indexOf',
    args: route.pointerId,
  );

  return resultString['result'];
}