startSurvey method

void startSurvey()

Starts the survey by pushing the SurveyScaffold page onto the navigation stack.

Implementation

void startSurvey() {
  Navigator.of(context).push(
    MaterialPageRoute(
      builder: (context) => ChangeNotifierProvider.value(
        value: this,
        child: const SurveyScaffold(),
      ),
    ),
  );
  currentStep.onInit?.call(currentStep);
}