tooltipInfoFromPointIndex method

  1. @override
TooltipInfo? tooltipInfoFromPointIndex(
  1. int pointIndex
)
inherited

Implementation

@override
TooltipInfo? tooltipInfoFromPointIndex(int pointIndex) {
  if (segments.isNotEmpty && pointIndex < dataCount) {
    return segments[0].tooltipInfo(pointIndex: pointIndex);
  }
  return null;
}