WaveSlider constructor

const WaveSlider(
  1. {double sliderHeight: 50.0,
  2. Color color: Colors.black,
  3. ValueChanged<double> onChangeEnd,
  4. ValueChanged<double> onChangeStart,
  5. @required ValueChanged<double> onChanged,
  6. bool displayTrackball: false}
)

Creates a wave slider.

When the state of the slider is changed the widget calls the onChanged callback.

Implementation

const WaveSlider({
  this.sliderHeight = 50.0,
  this.color = Colors.black,
  this.onChangeEnd,
  this.onChangeStart,
  @required this.onChanged,
  this.displayTrackball = false,
})  : assert(onChanged != null),
      assert(color != null),
      assert(sliderHeight != null),
      assert(sliderHeight >= 50 && sliderHeight <= 600);