GetTouchedSpotIndicator typedef
GetTouchedSpotIndicator =
List<TouchedSpotIndicatorData?> Function(LineChartBarData barData, List<int> spotIndexes)
Used for showing touch indicators (a thicker line and larger dot on the targeted spot).
It gives you the spotIndexes
that touch happened, or manually targeted,
in the given barData
, you should return a list of TouchedSpotIndicatorData,
length of this list should be equal to the spotIndexes.length
,
each TouchedSpotIndicatorData determines the look of showing indicator.
Implementation
typedef GetTouchedSpotIndicator = List<TouchedSpotIndicatorData?> Function(
LineChartBarData barData,
List<int> spotIndexes,
);