isMainRoute method

bool isMainRoute(
  1. Route route
)

Check whether route is marked as the main route in the collection.

Parameters

  • route: the route to check.

Returns

  • bool: true when the route is the current main route; otherwise false.

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'];
}