GradientSlider constructor

const GradientSlider({
  1. Key? key,
  2. required double value,
  3. double min = 0.0,
  4. double max = 1.0,
  5. required List<Color> gradientColors,
  6. ValueChanged<double>? onChanged,
  7. required Color overlayColor,
  8. Color inactiveTrackColor = Colors.grey,
  9. double? trackHeight = 4.0,
  10. Color thumbColor = Colors.black,
})

Implementation

const GradientSlider({
  super.key,
  required this.value,
  this.min = 0.0,
  this.max = 1.0,
  required this.gradientColors,
  this.onChanged,
  required this.overlayColor,
  this.inactiveTrackColor = Colors.grey,
  this.trackHeight = 4.0,
  this.thumbColor = Colors.black,
});