cursorSelectionMarkers method

List<MarkerMatch> cursorSelectionMarkers()

Retrieves a reference to a list of markers under the current cursor location.

Use setCursorScreenPosition to set the cursor location.

Returns

A list of MarkerMatch objects under the cursor. If no markers are found, the list will be empty.

Throws

  • An exception if it fails.

Implementation

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

  return MarkerMatchList.init(resultString['result'], 0).toList();
}