setPointerPosition method
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;
});
}