tooltipInfoFromPointIndex method

TooltipInfo? tooltipInfoFromPointIndex(
  1. int pointIndex
)

Implementation

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