enableIntervalSelection property Null safety

bool enableIntervalSelection
final

Option to select the particular interval based on the position of the tap or click.

Both the thumbs are moved to the selected interval if the enableIntervalSelection property is true, otherwise the nearest thumb is moved to the touch position.

Defaults to false.

This snippet shows how to enable selecting the particular interval in SfRangeSelector.

SfRangeValues  _initialValues = SfRangeValues(40.0, 80.0);

SfRangeSelector(
   min: 0.0,
   max: 100.0,
   initialValues: _initialValues,
   interval: 20,
   showLabels: true,
   enableTooltip: true,
    enableIntervalSelection: true,
   showTicks: true,
  child: Container(
    height: 200,
    color: Colors.pink[200],
  )
)

Implementation

final bool enableIntervalSelection;