CheckToShowDot typedef
CheckToShowDot =
bool Function(FlSpot spot, LineChartBarData barData)
It determines showing or hiding FlDotData on the spots.
It gives you the checking FlSpot and you should decide to show or hide the dot on this spot by returning true or false.
Implementation
typedef CheckToShowDot = bool Function(FlSpot spot, LineChartBarData barData);