cursorScreenPosition property

Point<int> get cursorScreenPosition

Get the cursor screen position. The coordinates are relative to the parent view screen

Returns

  • The current screen coordinates (Xy) of the cursor, relative to the view's parent screen.

Throws

  • An exception if it fails.

Implementation

Point<int> get cursorScreenPosition {
  final OperationResult val = objectMethod(
    _pointerId,
    'MapView',
    'getCursorScreenPosition',
  );
  final XyType<int> retVal = XyType<int>.fromJson(val['result']);
  return retVal.toPoint();
}