onChangeEnd property
The onChangeEnd callback will be called when the user ends tap or drag the range selector.
This callback is only used to notify the user about the end interaction and it does not update the range selector thumb value.
SfRangeValues _values = SfRangeValues(4.0, 6.0);
@override
Widget build(BuildContext context) {
return Scaffold(
body: SfRangeSelector(
min: 0,
max: 10,
initialValues: _values,
onChangeEnd: (SfRangeValues endValue) {
print('Interaction end');
},
child: Container(
height: 150,
color: Colors.green,
),
),
);
}
See also: • The onChangeStart callback used to notify the user about the interaction begins. • The onChanged callback used to update the range selector thumb value.
Implementation
final ValueChanged<SfRangeValues>? onChangeEnd;