SubZeroSlider constructor

const SubZeroSlider({
  1. Key? key,
  2. required double value,
  3. double min = 0.0,
  4. double max = 1.0,
  5. int? divisions,
  6. ValueChanged<double>? onChanged,
  7. ValueChanged<double>? onChangeStart,
  8. ValueChanged<double>? onChangeEnd,
  9. bool showTooltip = true,
  10. bool showTickMarks = false,
  11. String valueFormatter(
    1. double
    )?,
  12. String? minLabel,
  13. String? maxLabel,
  14. bool enabled = true,
  15. Color? activeTrackColor,
  16. Color? inactiveTrackColor,
  17. Color? thumbColor,
  18. double trackHeight = 4.0,
  19. double thumbRadius = 12.0,
})

Implementation

const SubZeroSlider({
  super.key,
  required this.value,
  this.min = 0.0,
  this.max = 1.0,
  this.divisions,
  this.onChanged,
  this.onChangeStart,
  this.onChangeEnd,
  this.showTooltip = true,
  this.showTickMarks = false,
  this.valueFormatter,
  this.minLabel,
  this.maxLabel,
  this.enabled = true,
  this.activeTrackColor,
  this.inactiveTrackColor,
  this.thumbColor,
  this.trackHeight = 4.0,
  this.thumbRadius = 12.0,
}) : assert(min <= max, 'min must be less than or equal to max'),
     assert(value >= min && value <= max, 'value must be between min and max');