GetBarTooltipItem typedef
GetBarTooltipItem =
BarTooltipItem? Function(BarChartGroupData group, int groupIndex, BarChartRodData rod, int rodIndex)
Provides a BarTooltipItem for showing content inside the BarTouchTooltipData.
You can override BarTouchTooltipData.getTooltipItem, it gives you
group
, groupIndex
, rod
, and rodIndex
that touch happened on,
then you should and pass your custom BarTooltipItem to show inside the tooltip popup.
Implementation
typedef GetBarTooltipItem = BarTooltipItem? Function(
BarChartGroupData group,
int groupIndex,
BarChartRodData rod,
int rodIndex,
);