cancelStep method

void cancelStep(
  1. FormStep? currentStep
)

Implementation

void cancelStep(FormStep? currentStep) {
  clearResult();
  if (steps.first == currentStep) {
    onCancel?.call();
  } else {
    onUpdate?.call(steps.first);
  }
}