labels property Null safety

RangeLabels? labels
final

Labels to show as text in the SliderThemeData.rangeValueIndicatorShape when the slider is active and SliderThemeData.showValueIndicator is satisfied.

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

Each label is rendered using the active ThemeData's TextTheme.bodyText1 text style, with the theme data's ColorScheme.onPrimary color. 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;