numberFormat property

NumberFormat? numberFormat
final

Formats the numeric labels.

Defaults to null.

This snippet shows how to set number format in SfSlider.

double _value = 4.0;

SfSlider(
  min: 0.0,
  max: 10.0,
  value: _value,
  interval: 2,
  showTicks: true,
  showLabels: true,
  numberFormat: NumberFormat(‘\$’),
  onChanged: (dynamic newValue) {
    setState(() {
      _value = newValue;
    });
  },
)

See also:

Implementation

final NumberFormat? numberFormat;