fireClosed method

void fireClosed()

Simulates the interstitial being dismissed: fires onClosed then onEvent, matching InterstitialPlacement's actual dispatch order (its onEvent wrapper invokes onClosed before forwarding to the publisher's own onEvent), and marks ready false, matching native's "spent, will not show again".

Implementation

void fireClosed() {
  ready = false;
  onClosed?.call();
  onEvent?.call(TeadsAdEvent.dismissed, null);
}