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