CircularProgressBar constructor

const CircularProgressBar({
  1. Key? key,
  2. required double minValue,
  3. required double maxValue,
  4. required double initialValue,
  5. required Widget icon,
  6. required String calculationCriteria,
  7. double size = 250.0,
  8. Color? backgroundColor,
  9. Color? progressColor,
  10. Color? markColor,
  11. Color? borderColor,
  12. Color? dialogBackgroundColor,
  13. Color? dialogTextColor,
  14. Color? buttonColor,
  15. Color? buttonTextColor,
  16. Color? cancelButtonColor,
  17. Color? cancelButtonTextColor,
  18. void onChanged(
    1. double
    )?,
})

Implementation

const CircularProgressBar({
  Key? key,
  required this.minValue,
  required this.maxValue,
  required this.initialValue,
  required this.icon,
  required this.calculationCriteria,
  this.size = 250.0, // Default size
  this.backgroundColor,
  this.progressColor,
  this.markColor,
  this.borderColor,
  this.dialogBackgroundColor,
  this.dialogTextColor,
  this.buttonColor,
  this.buttonTextColor,
  this.cancelButtonColor,
  this.cancelButtonTextColor,
  this.onChanged, // Initialize the new parameter
}) : super(key: key);