numberFormat property

NumberFormat? numberFormat
final

Formats the numeric labels.

Defaults to null.

This snippet shows how to set number format in SfRangeSlider.

SfRangeValues _values = SfRangeValues(4.0, 8.0);

SfRangeSlider(
  min: 0.0,
  max: 10.0,
  values: _values,
  interval: 2,
  showTicks: true,
  showLabels: true,
  numberFormat: NumberFormat(‘\$’),
  onChanged: (SfRangeValues newValues) {
    setState(() {
      _values = newValues;
    });
  },
)

See also:

Implementation

final NumberFormat? numberFormat;