StepProgressIndicator constructor

const StepProgressIndicator({
  1. required int totalSteps,
  2. Widget customStep(
    1. int,
    2. Color,
    3. double
    )?,
  3. void Function() onTap(
    1. int
    )?,
  4. Color customColor(
    1. int
    )?,
  5. double customSize(
    1. int,
    2. bool
    )?,
  6. double? selectedSize,
  7. double? unselectedSize,
  8. Radius? roundedEdges,
  9. Gradient? gradientColor,
  10. Gradient? selectedGradientColor,
  11. Gradient? unselectedGradientColor,
  12. BlendMode? blendMode,
  13. Axis direction = Axis.horizontal,
  14. TextDirection progressDirection = TextDirection.ltr,
  15. double size = 4.0,
  16. int currentStep = 0,
  17. Color selectedColor = Colors.blue,
  18. Color unselectedColor = Colors.grey,
  19. double padding = 2.0,
  20. double fallbackLength = 100.0,
  21. MainAxisAlignment mainAxisAlignment = MainAxisAlignment.center,
  22. CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center,
  23. MainAxisAlignment stepMainAxisAlignment = MainAxisAlignment.center,
  24. CrossAxisAlignment stepCrossAxisAlignment = CrossAxisAlignment.center,
  25. Key? key,
})

Implementation

const StepProgressIndicator({
  required this.totalSteps,
  this.customStep,
  this.onTap,
  this.customColor,
  this.customSize,
  this.selectedSize,
  this.unselectedSize,
  this.roundedEdges,
  this.gradientColor,
  this.selectedGradientColor,
  this.unselectedGradientColor,
  this.blendMode,
  this.direction = Axis.horizontal,
  this.progressDirection = TextDirection.ltr,
  this.size = 4.0,
  this.currentStep = 0,
  this.selectedColor = Colors.blue,
  this.unselectedColor = Colors.grey,
  this.padding = 2.0,
  this.fallbackLength = 100.0,
  this.mainAxisAlignment = MainAxisAlignment.center,
  this.crossAxisAlignment = CrossAxisAlignment.center,
  this.stepMainAxisAlignment = MainAxisAlignment.center,
  this.stepCrossAxisAlignment = CrossAxisAlignment.center,
  Key? key,
})  : assert(totalSteps > 0,
          "Number of total steps (totalSteps) of the StepProgressIndicator must be greater than 0"),
      assert(currentStep >= 0,
          "Current step (currentStep) of the StepProgressIndicator must be greater than or equal to 0"),
      assert(padding >= 0.0,
          "Padding (padding) of the StepProgressIndicator must be greater or equal to 0"),
      super(key: key);