onChanged property

ValueChanged<double>? onChanged
final

Called during a drag when the user is selecting a new value for the slider by dragging.

The slider passes the new value to the callback but does not actually change state until the parent widget rebuilds the slider with the new value.

If null, the slider will be displayed as disabled.

Implementation

final ValueChanged<double>? onChanged;