resetMapSelection method

Future<void> resetMapSelection()

Sets the cursor screen position to the default location (the center of viewport).

This method needs to be awaited

Implementation

Future<void> resetMapSelection() async {
  await setCursorScreenPosition(
    Point<int>((viewport.width / 2).round(), (viewport.height / 2).round()),
  );
}