cursorSelectionRoutes method

List<Route> cursorSelectionRoutes()

Retrieve the list of routes under the cursor location.

Use setCursorScreenPosition to set the cursor location.

Returns

  • A list of Route objects under the cursor. If no routes are found, the list will be empty.

Throws

  • An exception if it fails.

Implementation

List<Route> cursorSelectionRoutes() {
  final OperationResult resultString = objectMethod(
    _pointerId,
    'MapView',
    'cursorSelectionRoutes',
  );

  return RouteList.init(resultString['result'], _mapId).toList();
}