cursorSelectionPath method

Path? cursorSelectionPath()

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.

Throws

  • An exception if it fails.

Implementation

Path? cursorSelectionPath() {
  final OperationResult resultString = objectMethod(
    _pointerId,
    'MapView',
    'cursorSelectionPath',
  );

  if (resultString['result'] == 0) {
    return null;
  }
  return Path.init(resultString['result'], _mapId);
}