getLabel method

String getLabel(
  1. Route route
)

Retrieve the label text currently shown for route.

Parameters

  • route: the Route whose label will be returned.

Returns

  • String: current label text for the route (may be empty).

Implementation

String getLabel(final Route route) {
  final OperationResult resultString = objectMethod(
    pointerId,
    'MapViewRouteCollection',
    'getLabel',
    args: route.pointerId,
    dependencyId: mapPointerId,
  );

  return resultString['result'];
}