stepBack method

void stepBack({
  1. required BuildContext context,
  2. QuestionResult resultFunction()?,
})

Implementation

void stepBack({
  required BuildContext context,
  QuestionResult Function()? resultFunction,
}) {
  if (onStepBack != null) {
    if (!onStepBack!(context, resultFunction)) return;
  }
  BlocProvider.of<SurveyPresenter>(context).add(
    StepBack(
      resultFunction != null ? resultFunction.call() : null,
    ),
  );
}