VerticalProgressBar constructor

const VerticalProgressBar({
  1. Key? key,
  2. required double height,
  3. required double maxValue,
  4. required double currentPosition,
  5. required ValueChanged<double> onChanged,
  6. double? bufferedPosition,
  7. ValueChanged<double>? onChangeStart,
  8. ValueChanged<double>? onChangeEnd,
  9. Color bufferedColor = Colors.grey,
  10. Color progressColor = Colors.blue,
  11. Color thumbColor = const Color.fromRGBO(13, 71, 161, 1),
  12. double thumbDiameter = 18,
  13. double trackWidth = 10,
  14. double enabledWidth = 10,
  15. bool isThumbVisible = true,
})

Implementation

const VerticalProgressBar({
  super.key,
  required this.height,
  required this.maxValue,
  required this.currentPosition,
  required this.onChanged,
  this.bufferedPosition,
  this.onChangeStart,
  this.onChangeEnd,
  this.bufferedColor = Colors.grey,
  this.progressColor = Colors.blue,
  this.thumbColor = const Color.fromRGBO(13, 71, 161, 1),
  this.thumbDiameter = 18,
  this.trackWidth = 10,
  this.enabledWidth = 10,
  this.isThumbVisible = true,
})  : assert(trackWidth < thumbDiameter,
          'trackWidth must be less than thumbDiameter'),
      assert(currentPosition >= 0 && currentPosition <= maxValue,
          'currentPosition must be within 0 and maxValue');