getMapViewRoute method

MapViewRoute? getMapViewRoute(
  1. int index
)

Get the MapViewRoute wrapper for the route at index.

Parameters

  • index: zero-based index of the map view route in this collection.

Returns

  • MapViewRoute?: wrapper object for the route at the given index, or null if none exists.

See also:

  • MapViewRoute — The route with rendersettings and label as shown on the map.
  • getRoute — Get the underlying route object at the given index.
  • size — The number of routes in the collection.

Implementation

MapViewRoute? getMapViewRoute(final int index) {
  final OperationResult resultString = objectMethod(
    pointerId,
    'MapViewRouteCollection',
    'getMapViewRoute',
    args: index,
    dependencyId: mapPointerId,
  );

  if (resultString['gemApiError'] == -11) {
    return null;
  }
  return MapViewRoute.init(resultString['result'], this);
}