ScatterLabelSettings constructor
ScatterLabelSettings({
- bool? showLabel,
- GetLabelTextStyleFunction? getLabelTextStyleFunction,
- GetLabelFunction? getLabelFunction,
- 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;