GetBarTooltipColor typedef

GetBarTooltipColor = Color Function(BarChartGroupData group)

/ Provides a Color to show different background color for each rod

You can override BarTouchTooltipData.getTooltipColor, it gives you group that touch happened on, then you should and pass your custom Color to set background color of tooltip popup.

Implementation

typedef GetBarTooltipColor = Color Function(
  BarChartGroupData group,
);