createStep method

Widget createStep(
  1. StepType type,
  2. Color color,
  3. Color progressColor,
  4. bool hasCompleted,
  5. double width,
  6. double height,
  7. Color borderColor,
  8. double borderWidth,
  9. Widget? child,
)

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,
      );
  }
}