CircularStepProgressIndicator constructor
const
CircularStepProgressIndicator({
- required int totalSteps,
- Widget? child,
- double? height,
- double? width,
- Color customColor()?,
- double customStepSize()?,
- double? selectedStepSize,
- double? unselectedStepSize,
- bool roundedCap()?,
- Gradient? gradientColor,
- CircularDirection circularDirection = CircularDirection.clockwise,
- double fallbackHeight = 100.0,
- double fallbackWidth = 100.0,
- int currentStep = 0,
- Color? selectedColor = Colors.blue,
- Color? unselectedColor = Colors.grey,
- double padding = math.pi / 20,
- double stepSize = 6.0,
- double startingAngle = 0,
- double arcSize = math.pi * 2,
- bool removeRoundedCapExtraAngle = false,
- 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);