onTapEvent method

dynamic onTapEvent(
  1. TapDownDetails details
)

Handle tap event

Implementation

onTapEvent(TapDownDetails details) {
  setState(() {
    clickPoint = details.localPosition;
  });
  widget.onTap?.call(
    convert2DPointToSphereCoordinates(
      details.localPosition,
      center,
      convertedRadius(),
      rotationY,
      rotationZ,
    ),
  );
}