stepBack method

void stepBack({
  1. required BuildContext context,
  2. StepResult? stepResult,
})

Implementation

void stepBack({
  required BuildContext context,
  StepResult? stepResult,
}) {
  if (onStepBack != null) {
    onStepBack!(context, stepResult);
    return;
  }
  SurveyStateProvider.of(context).onEvent(
    StepBack(
      stepResult,
    ),
  );
}