CircularStepProgressIndicator constructor

const CircularStepProgressIndicator({
  1. required int totalSteps,
  2. Widget? child,
  3. double? height,
  4. double? width,
  5. Color customColor(
    1. int
    )?,
  6. double customStepSize(
    1. int,
    2. bool
    )?,
  7. double? selectedStepSize,
  8. double? unselectedStepSize,
  9. bool roundedCap(
    1. int,
    2. bool
    )?,
  10. Gradient? gradientColor,
  11. CircularDirection circularDirection = CircularDirection.clockwise,
  12. double fallbackHeight = 100.0,
  13. double fallbackWidth = 100.0,
  14. int currentStep = 0,
  15. Color? selectedColor = Colors.blue,
  16. Color? unselectedColor = Colors.grey,
  17. double padding = math.pi / 20,
  18. double stepSize = 6.0,
  19. double startingAngle = 0,
  20. double arcSize = math.pi * 2,
  21. bool removeRoundedCapExtraAngle = false,
  22. Key? key,
})

Implementation

const CircularStepProgressIndicator({
  required this.totalSteps,
  this.child,
  this.height,
  this.width,
  this.customColor,
  this.customStepSize,
  this.selectedStepSize,
  this.unselectedStepSize,
  this.roundedCap,
  this.gradientColor,
  this.circularDirection = CircularDirection.clockwise,
  this.fallbackHeight = 100.0,
  this.fallbackWidth = 100.0,
  this.currentStep = 0,
  this.selectedColor = Colors.blue,
  this.unselectedColor = Colors.grey,
  this.padding = math.pi / 20,
  this.stepSize = 6.0,
  this.startingAngle = 0,
  this.arcSize = math.pi * 2,
  this.removeRoundedCapExtraAngle = false,
  Key? key,
})  : assert(totalSteps > 0,
          "Number of total steps (totalSteps) of the CircularStepProgressIndicator must be greater than 0"),
      assert(currentStep >= 0,
          "Current step (currentStep) of the CircularStepProgressIndicator must be greater than or equal to 0"),
      assert(padding >= 0.0,
          "Padding (padding) of the CircularStepProgressIndicator must be greater or equal to 0"),
      super(key: key);