setPointerPosition method

void setPointerPosition(
  1. Offset? position
)

Sets the current pointer position.

Parameters:

  • position - The current pointer position, or null to clear

Implementation

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