setPointerPosition method

void setPointerPosition(
  1. ScreenPosition? position
)

Sets the current pointer position in screen/widget-local coordinates.

Parameters:

  • position - The current pointer position relative to the widget, or null to clear

Implementation

void setPointerPosition(ScreenPosition? position) {
  runInAction(() {
    lastPointerPosition.value = position;
  });
}