fireEvent method
Fires a generic event. TeadsAdEvent.dismissed is routed through fireClosed so onClosed and the dismissed event always fire together, in the same order as the real widget — the real widget has no way to produce one without the other.
Implementation
void fireEvent(TeadsAdEvent event, [Map<String, dynamic>? data]) {
if (event == TeadsAdEvent.dismissed) {
fireClosed();
return;
}
onEvent?.call(event, data);
}