nextStep method

void nextStep(
  1. BuildContext context,
  2. QuestionResult resultFunction()
)

Implementation

void nextStep(
  BuildContext context,
  QuestionResult Function() resultFunction,
) {
  if (onNextStep != null) {
    if (!onNextStep!(context, resultFunction)) return;
  }
  BlocProvider.of<SurveyPresenter>(context).add(
    NextStep(
      resultFunction.call(),
    ),
  );
}