Callback function type to handle value changes during the swipe.
typedef ChangeCallback = void Function(double newValue, double oldValue);