discardCurrentAd method

  1. @protected
void discardCurrentAd()

Drops the current handle (without showing it) and preloads a fresh one — for a warm ad that must not be shown: expired, requested under a or stale consent generation.

A no-op while a load is already in flight (same reasoning as review finding #4 on NativeAdController.reload()): that load is already the replacement. It deliberately runs while the slot is AdShowing: the show engine calls it, claim already released, for an ad it refused to dispatch (ADR-075) — bailing there would strand the slot at AdShowing.

Implementation

@protected
void discardCurrentAd() {
  if (_disposed || _state.value is AdLoading) return;
  _dropHandle();
  _state.value = const AdIdle();
  unawaited(load());
}