CustomSlider typedef

CustomSlider = Widget Function(double value, dynamic onChanged(double value), dynamic onChangeEnd(double value))

A function type that defines a custom slider widget.

  • value: The current active value.
  • onChanged: A function that will be called when the slider value changes.
  • onChangeEnd: A function that will be called when the slider value change ends.

Returns a Widget that allows the user to adjust a value using a slider.

Implementation

typedef CustomSlider = Widget Function(
  double value,
  Function(double value) onChanged,
  Function(double value) onChangeEnd,
);