GetLineTooltipItems typedef

GetLineTooltipItems = List<LineTooltipItem?> Function(List<LineBarSpot> touchedSpots)

Provides a LineTooltipItem for showing content inside the LineTouchTooltipData.

You can override LineTouchTooltipData.getTooltipItems, it gives you touchedSpots list that touch happened on, then you should and pass your custom LineTooltipItem list (length should be equal to the touchedSpots.length), to show inside the tooltip popup.

Implementation

typedef GetLineTooltipItems = List<LineTooltipItem?> Function(
  List<LineBarSpot> touchedSpots,
);