handlePointerHover method

void handlePointerHover(
  1. PointerHoverEvent details
)

Implementation

void handlePointerHover(PointerHoverEvent details) {
  final Offset localPosition = globalToLocal(details.position);
  if (_interactiveSegment != null && _isVisible()) {
    const bool hasSelection = false;
    final bool hasTooltip = _tooltipEnabled &&
        parent!.tooltipBehavior!.activationMode == ActivationMode.singleTap;
    _handleCurrentInteraction(hasSelection, hasTooltip, localPosition,
        kind: details.kind);
  }

  dataLabelContainer?.handlePointerHover(localPosition);
  trendlineContainer?.handlePointerHover(localPosition);
}