GetDotColorCallback typedef

GetDotColorCallback = Color Function(FlSpot, double, LineChartBarData)

The callback passed to get the color of a FlSpot

The callback receives FlSpot, which is the target spot, double is the percentage of spot along the bar line, LineChartBarData is the chart's bar. It should return a Color that needs to be used for drawing target.

Implementation

typedef GetDotColorCallback = Color Function(FlSpot, double, LineChartBarData);