getCursorPosition method
Get cursor position.
Implementation
Future<Offset> getCursorPosition() async {
final result = await sendForMap('getCursorPosition');
if (result == null) {
debugPrint('[ScreenClient] getCursorPosition() returned null — using fallback');
return Offset.zero;
}
return Offset(
(result['x'] as num).toDouble(),
(result['y'] as num).toDouble(),
);
}