surveyInteracted method
Method to run after interacting with a Survey instance.
Pass a Survey instance which can be retrieved from Analytics.fetchAvailableSurveys.
surveyButton
is the button that was interacted with by the user.
Implementation
@override
void surveyInteracted({
required Survey survey,
required SurveyButton surveyButton,
}) {
// Any action, except for 'snooze' will permanently dismiss a given survey
final permanentlyDismissed = surveyButton.action == 'snooze' ? false : true;
_surveyHandler.dismiss(survey, permanentlyDismissed);
send(Event.surveyAction(
surveyId: survey.uniqueId,
status: surveyButton.action,
));
}