onHover method

void onHover(
  1. PointerHoverEvent event
)

Implementation

void onHover(PointerHoverEvent event) {
  position = event.localPosition;

  update();
}