onChangeEnd property

ValueChanged<SfRangeValues>? onChangeEnd
final

The onChangeEnd callback will be called when the user ends tap or drag the range slider.

This callback is only used to notify the user about the end interaction and it does not update the range slider thumb value.

SfRangeValues _values = SfRangeValues(4.0, 6.0);

@override
Widget build(BuildContext context) {
  return Scaffold(
    body: SfRangeSlider(
      min: 0,
      max: 10,
      values: _values,
      onChangeEnd: (SfRangeValues endValue) {
        print('Interaction end');
      },
      onChanged: (SfRangeValues newValues) {
        setState(() {
          _values = newValues;
        });
      },
    ),
  );
}

See also: • The onChangeStart callback used to notify the user about the interaction begins. • The onChanged callback used to update the range slider thumb value.

Implementation

final ValueChanged<SfRangeValues>? onChangeEnd;