ScatterLabelSettings class

Defines information about the labels in the ScatterChart

Constructors

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.

Properties

getLabelFunction GetLabelFunction
This function gives you the index value of the spot in the list and returns the label.
final
getLabelTextStyleFunction GetLabelTextStyleFunction
This function gives you the index value of the spot in the list and returns the text style.
final
hashCode int
The hash code for this object.
no setterinherited
props List<Object?>
Used for equality check, see EquatableMixin.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showLabel bool
Determines whether to show or hide the labels.
final
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
textDirection TextDirection
Determines the direction of the text for the labels.
final

Methods

copyWith({bool? showLabel, GetLabelTextStyleFunction? getLabelTextStyleFunction, GetLabelFunction? getLabelFunction, TextDirection? textDirection}) ScatterLabelSettings
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

lerp(ScatterLabelSettings a, ScatterLabelSettings b, double t) ScatterLabelSettings
Lerps a ScatterLabelSettings based on t value, check Tween.lerp.