ScatterLabelSettings constructor

ScatterLabelSettings({
  1. bool? showLabel,
  2. GetLabelTextStyleFunction? getLabelTextStyleFunction,
  3. GetLabelFunction? getLabelFunction,
  4. TextDirection? textDirection,
})

You can change showLabel value to show or hide the label, textStyle defines the style of label in the ScatterChart.

Implementation

ScatterLabelSettings({
  bool? showLabel,
  GetLabelTextStyleFunction? getLabelTextStyleFunction,
  GetLabelFunction? getLabelFunction,
  TextDirection? textDirection,
})  : showLabel = showLabel ?? false,
      getLabelTextStyleFunction =
          getLabelTextStyleFunction ?? getDefaultLabelTextStyleFunction,
      getLabelFunction = getLabelFunction ?? getDefaultLabelFunction,
      textDirection = textDirection ?? TextDirection.ltr;