labelFormatterCallback property

LabelFormatterCallback? labelFormatterCallback
final

Called when the labels are been generated.

This snippet shows how to set generate labels for an axis.

SfLinearGauge(onFormatLabel: (value) {
if(value == "100") {
return '°F';
}
else {
return value + '°';
}})

Implementation

final LabelFormatterCallback? labelFormatterCallback;