closeSurvey method
Implementation
void closeSurvey(
BuildContext context, {
QuestionResult Function()? resultFunction,
}) {
if (onCloseSurvey != null) {
if (!onCloseSurvey!(context, resultFunction)) return;
}
BlocProvider.of<SurveyPresenter>(context).add(
CloseSurvey(
resultFunction != null ? resultFunction.call() : null,
),
);
}