GetLabelFunction typedef
GetLabelFunction =
String Function(int spotIndex, ScatterSpot spot)
It gives you the index value as well as the spot and returns the label of the spot.
Implementation
typedef GetLabelFunction = String Function(
int spotIndex,
ScatterSpot spot,
);