Steps constructor

Steps({
  1. Key? key,
  2. required List<StepItem> steps,
  3. int active = 0,
  4. String direction = 'horizontal',
  5. Color activeColor = Style.stepFinishLineColor,
  6. IconData activeIcon = Icons.check_circle,
  7. IconData? inactiveIcon,
})

Implementation

Steps(
    {Key? key,
    required this.steps,
    this.active: 0,
    this.direction: 'horizontal',
    this.activeColor: Style.stepFinishLineColor,
    this.activeIcon: Icons.check_circle,
    this.inactiveIcon})
    : assert(steps.length > 0, '步骤数量必须大于零');