handleStepCallbacks method
Implementation
Future<void> handleStepCallbacks(SurveyStep<dynamic> currentStep) async {
if (currentStep.beforeComplete != null) {
currentStep.isLoading = true;
notifyListeners();
await currentStep.beforeComplete!(currentStep.answer);
currentStep.isLoading = false;
notifyListeners();
}
currentStep.onCompleted?.call(currentStep.answer);
}