numberFormat property
NumberFormat?
numberFormat
final
Formats the numeric labels.
Defaults to null
.
This snippet shows how to set number format in SfRangeSelector.
SfRangeValues _initialValues = SfRangeValues(4.0, 8.0);
SfRangeSelector(
min: 0.0,
max: 10.0,
initialValues: _initialValues,
interval: 2,
showTicks: true,
showLabels: true,
numberFormat: NumberFormat(‘\$’),
child: Container(
height: 200,
color: Colors.green[100],
),
)
See also:
- labelFormatterCallback, for formatting the numeric and date labels.
Implementation
final NumberFormat? numberFormat;