handleAdDismissed method

Stream<FastRewardedAdBlocState> handleAdDismissed()

Handles the event when an ad is dismissed.

Implementation

Stream<FastRewardedAdBlocState> handleAdDismissed() async* {
  debugLog(
    'Ad dismissed. Request id: ${currentState.requestId}',
    debugLabel: debugLabel,
  );

  // Block requests for the specified duration
  _blockRequests();

  yield currentState.copyWith(
    hasDismissedAd: true,
    isShowingAd: false,
    isLoadingAd: false,
    hasLoadedAd: false,
  );
}