cursorSelectionPath method
Retrieve the path under the cursor location.
Use setCursorScreenPosition to set the cursor location.
Returns
- A Path object under the cursor. If no path is found returns null.
See also:
- setCursorScreenPosition - Set the cursor location for selection
- GemMapController.registerOnCursorSelectionUpdatedPath - Listen for cursor selection changes
Implementation
Path? cursorSelectionPath() {
final OperationResult resultString = objectMethod(
_pointerId,
'MapView',
'cursorSelectionPath',
);
if (resultString['result'] == -1) {
return null;
}
return Path.init(resultString['result']);
}