onHover method

dynamic onHover(
  1. PointerEvent event
)

Handle hover event

Implementation

onHover(PointerEvent event) {
  setState(() {
    hoveringPoint = event.localPosition;
  });
  widget.onHover?.call(
    convert2DPointToSphereCoordinates(
      event.localPosition,
      center,
      convertedRadius(),
      rotationY,
      rotationZ,
    ),
  );
}