onChangeEnd property

ValueChanged? onChangeEnd
final

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

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

double _value = 4.0;

@override
Widget build(BuildContext context) {
  return Scaffold(
    body: SfSlider(
      min: 0,
      max: 10,
      value: _value,
      onChangeEnd: (dynamic endValue) {
        print('Interaction end');
      },
      onChanged: (dynamic newValue) {
        setState(() {
          _value = newValue;
        });
      },
    ),
  );
}

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

Implementation

final ValueChanged<dynamic>? onChangeEnd;