reportSurveyStarted method
void
reportSurveyStarted()
Fired once when the survey first becomes visible (its impression).
Implementation
void reportSurveyStarted() {
final state = _surveyOrchestrator.state;
if (state == null) return;
_dwellTracker.markViewed(state.payload.cepCampaignId);
final config = state.config;
_events.toBoth(
const ExperienceImpressed(),
SurveyViewed(
itemTotal: _surveyItemTotal(config),
hasWelcome: _surveyHasWelcome(config),
hasThanks: _surveyHasThanks(config),
hasBranching: _surveyHasBranching(config),
screenName: _currentScreen,
),
state.payload,
);
}