GetLineTooltipColor typedef
GetLineTooltipColor =
Color Function(LineBarSpot touchedSpot)
/ Provides a Color to show different background color for each touched spot
You can override LineTouchTooltipData.getTooltipColor, it gives you
touchedSpot
object that touch happened on, then you should and pass your custom Color list
(length should be equal to the touchedSpots.length
), to set background color
of tooltip popup.
Implementation
typedef GetLineTooltipColor = Color Function(
LineBarSpot touchedSpot,
);