attemptContinue method
Attempt to continue to the next step with validation
Implementation
Future<bool> attemptContinue() async {
if (!await canContinue()) {
await onCannotContinue();
return false;
}
await onBeforeNext();
if (isLastStep) {
await onComplete();
return true;
}
bool success = await nextStep();
if (success) {
await onAfterNext();
}
return success;
}