RothkoSteppers constructor

RothkoSteppers({
  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. StepperSize stepperSize = StepperSize.MEDIUM,
  11. Gradient? selectedGradientColor,
  12. Gradient? unselectedGradientColor,
  13. BlendMode? blendMode,
  14. Axis direction = Axis.horizontal,
  15. TextDirection progressDirection = TextDirection.ltr,
  16. double size = 8.0,
  17. int currentStep = 0,
  18. Color selectedColor = RothkoColor.kPrimaryBase,
  19. Color unselectedColor = RothkoColor.kLightNeutralDarken1,
  20. double padding = 4.0,
  21. double fallbackLength = 100.0,
  22. MainAxisAlignment mainAxisAlignment = MainAxisAlignment.center,
  23. CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center,
  24. MainAxisAlignment stepMainAxisAlignment = MainAxisAlignment.center,
  25. CrossAxisAlignment stepCrossAxisAlignment = CrossAxisAlignment.center,
  26. Key? key,
})

Implementation

RothkoSteppers({
  required this.totalSteps,
  this.customStep,
  this.onTap,
  this.customColor,
  this.customSize,
  this.selectedSize,
  this.unselectedSize,
  this.roundedEdges,
  this.gradientColor,
  this.stepperSize = StepperSize.MEDIUM,
  this.selectedGradientColor,
  this.unselectedGradientColor,
  this.blendMode,
  this.direction = Axis.horizontal,
  this.progressDirection = TextDirection.ltr,
  this.size = 8.0,
  this.currentStep = 0,
  this.selectedColor = RothkoColor.kPrimaryBase,
  this.unselectedColor = RothkoColor.kLightNeutralDarken1,
  this.padding = 4.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);