handlePointerHover method

void handlePointerHover(
  1. Offset localPosition
)

Implementation

void handlePointerHover(Offset localPosition) {
  final int nearestPointIndex = _nearestPointIndex(localPosition);
  if (nearestPointIndex != -1) {
    final TooltipInfo? info = tooltipInfo(pointIndex: nearestPointIndex);
    if (info != null) {
      series!.parent!.behaviorArea!.raiseTooltip(info);
    }
  }
}