stepForward method

void stepForward(
  1. Event event,
  2. StepDirective? step
)

Implementation

void stepForward(Event event, StepDirective? step) {
  // Prevent event from propagating up to the stepper.  This
  // is necessary for a vertical default sized stepper with
  // all jumps allowed, so that the stepper doesn't jump back
  // to the step after clicking the continue button
  event.preventDefault();
  event.stopPropagation();

  AsyncActionController<bool> ctrl = AsyncActionController<bool>();
  step?.requestStepContinue(ctrl.action!);
  ctrl.execute(() {
    activeStep?.complete = true;
    if (activeStep != null && activeStep!.isLast) {
      stepperDone = true;
      return true;
    }
    return _stepTo((activeStepIndex) + 1);
  });
}