stepSize property Null safety

double? stepSize

Option to select discrete values.

stepSize doesn’t work for DateTime range selector and lockRange doesn't works with stepSize.

For example, if min is 0.0 and max is 10.0 and stepSize is 2.0, the range selector will move the thumbs at 0.0, 2.0, 4.0 and so on.

Defaults to null. Must be greater than 0.

This snippet shows how to create discrete SfRangeSelector.

SfRangeValues _initialValues = SfRangeValues(4.0, 8.0);

  min: 0.0,
  max: 10.0,
  initialValues: _initialValues,
  stepSize: 2,
  child: Container(
    height: 200,


final double? stepSize;