showLabels property Null safety

bool showLabels
final

Option to render the labels on given interval.

Defaults to false.

This snippet shows how to show labels in SfSlider.

double _value = 4.0;

SfSlider(
  min: 0.0,
  max: 10.0,
  value: _value,
  interval: 1,
  showLabels: true,
  onChanged: (dynamic newValue) {
    setState(() {
      _value = newValue;
    });
   },
)

See also:

Implementation

final bool showLabels;