FluidSlider constructor

const FluidSlider({
  1. Key? key,
  2. required double value,
  3. double min = 0.0,
  4. double max = 1.0,
  5. Widget? start,
  6. Widget? end,
  7. ValueChanged<double>? onChanged,
  8. TextStyle? labelsTextStyle,
  9. TextStyle? valueTextStyle,
  10. ValueChanged<double>? onChangeStart,
  11. ValueChanged<double>? onChangeEnd,
  12. Color? sliderColor,
  13. Color? thumbColor,
  14. String mapValueToString(
    1. double
    )?,
  15. bool showDecimalValue = false,
  16. double? thumbDiameter,
})

Implementation

const FluidSlider({
  Key? key,
  required this.value,
  this.min = 0.0,
  this.max = 1.0,
  this.start,
  this.end,
  this.onChanged,
  this.labelsTextStyle,
  this.valueTextStyle,
  this.onChangeStart,
  this.onChangeEnd,
  this.sliderColor,
  this.thumbColor,
  this.mapValueToString,
  this.showDecimalValue = false,
  this.thumbDiameter,
})  : assert(min <= max),
      assert(value >= min && value <= max),
      super(key: key);