Called when the value changes. Null makes the slider read-only.
final ValueChanged<double>? onChanged;