label property

String label
final

A label to show above the slider when the slider is active.

It is used to display the value of a discrete slider, and it is displayed as part of the value indicator shape.

The label is rendered using the active ThemeData's ThemeData.accentTextTheme.body2 text style.

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

See also:

Implementation

final String label