createStep method
Implementation
Widget createStep(
StepType type,
Color color,
Color progressColor,
bool hasCompleted,
double width,
double height,
Color borderColor,
double borderWidth,
Widget? child) {
switch (type) {
case StepType.arrow:
return ProgressStepWithArrow(
width: width,
height: height,
defaultColor: color,
progressColor: progressColor,
borderColor: borderColor,
borderWidth: borderWidth,
wasCompleted: hasCompleted,
child: child,
);
case StepType.chevron:
return ProgressStepWithChevron(
width: width,
height: height,
defaultColor: color,
progressColor: progressColor,
borderColor: borderColor,
borderWidth: borderWidth,
wasCompleted: hasCompleted,
child: child,
);
case StepType.chevronBlunt:
return ProgressStepWithBluntChevron(
width: width,
height: height,
defaultColor: color,
progressColor: progressColor,
borderColor: borderColor,
borderWidth: borderWidth,
wasCompleted: hasCompleted,
child: child,
);
}
}