fetchCursorPosition method
Asynchronously fetches the current cursor position.
Implementation
Future<Point<int>> fetchCursorPosition() {
final completer = Completer<Point<int>>();
getCursorPosition((x, y) {
completer.complete(Point(x, y));
});
return completer.future;
}