cursorSelectionOverlayItems method
Retrieve the list of overlay items under the cursor location.
Use setCursorScreenPosition to set the cursor location.
Returns
A list of OverlayItem objects under the cursor. If no overlay items are found, the list will be empty.
Throws
- An exception if it fails.
Implementation
List<OverlayItem> cursorSelectionOverlayItems() {
final OperationResult resultString = objectMethod(
_pointerId,
'MapView',
'cursorSelectionOverlayItems',
);
return OverlayItemList.init(resultString['result']).toList();
}