enableDeferredUpdate property

bool enableDeferredUpdate
final

Defers the range update.

Updates the controller’s start and end values and invoke the onChanged callback when the thumb is dragged and held for the duration specified in the deferredUpdateDelay. However, range values are immediately updated in touch up action.

By default, range values are updated as soon as the thumb is being dragged.

Defaults to false.

This code snippet shows how to enable the enableDeferredUpdate in SfRangeSelector.


SfRangeSelector(
  min: 0.0,
  max: 10.0,
  enableDeferredUpdate: true,
  initialValues: SfRangeValues(4.0,8.0),
  child: Container(
      height: 200,
      color: Colors.green[100],
   ),
)

See also:

Implementation

final bool enableDeferredUpdate;