GetScatterTooltipColor typedef

GetScatterTooltipColor = Color Function(ScatterSpot touchedSpot)

Provides a Color to show different background color inside the ScatterTouchTooltipData.

You can override ScatterTouchTooltipData.getTooltipColor, it gives you touchedSpot that touch happened on, then you should and pass your custom Color to show it inside the tooltip popup.

Implementation

typedef GetScatterTooltipColor = Color Function(
  ScatterSpot touchedSpot,
);