GetLabelTextStyleFunction typedef

GetLabelTextStyleFunction = TextStyle? Function(int spotIndex, ScatterSpot spot)

It gives you the index value as well as the spot and gets the text style of the label.

Implementation

typedef GetLabelTextStyleFunction = TextStyle? Function(
  int spotIndex,
  ScatterSpot spot,
);