SliderPicker constructor

const SliderPicker({
  1. required double value,
  2. required ValueChanged<double> onChanged,
  3. double min = 0.0,
  4. double max = 1.0,
  5. List<Color>? colors,
  6. Widget? child,
  7. BorderRadius? borderRadius = _SliderPickerState._defaultBorderRadius,
  8. Border? border = const Border.fromBorderSide(BorderSide(color: Colors.grey)),
  9. double height = 40,
  10. Key? key,
})

Implementation

const SliderPicker({
  required this.value,
  required this.onChanged,
  this.min = 0.0,
  this.max = 1.0,
  this.colors,
  this.child,
  this.borderRadius = _SliderPickerState._defaultBorderRadius,
  this.border = const Border.fromBorderSide(BorderSide(color: Colors.grey)),
  this.height = 40,
  Key? key,
})  : assert(value >= min && value <= max),
      super(key: key);