onEvent method

void onEvent(
  1. String name
)

Called when an analytics event fires — shows a survey gated on that event.

Implementation

void onEvent(String name) {
  if (current.value != null || !_cfg.surveyAutoShow) return;
  _showNextEligible(name);
}