labels property

RangeLabels? labels
final

Labels to show as text in the SliderThemeData.rangeValueIndicatorShape.

There are two labels: one for the start thumb and one for the end thumb.

Each label is rendered using the active ThemeData's ThemeData.textTheme.bodyText1 text style, with the theme data's ThemeData.colorScheme.onPrimaryColor. The label's text style can be overridden with SliderThemeData.valueIndicatorTextStyle.

If null, then the value indicator will not be displayed.

See also:

Implementation

final RangeLabels? labels;