nextStep method

void nextStep(
  1. BuildContext context,
  2. StepResult? stepResult
)

Implementation

void nextStep(
  BuildContext context,
  StepResult? stepResult,
) {
  if (onNextStep != null) {
    onNextStep!(context, stepResult);
    return;
  }
  SurveyStateProvider.of(context).onEvent(
    NextStep(
      stepResult,
    ),
  );
}