handlePointerHover method

void handlePointerHover(
  1. PointerHoverEvent details
)

Implementation

void handlePointerHover(PointerHoverEvent details) {
  final Offset localPosition = globalToLocal(details.position);
  if (parent != null && _interactiveSegment != null) {
    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);
}