InterstitialAd constructor

InterstitialAd({
  1. required String adSlotId,
  2. @deprecated bool? openInHmsCore,
  3. AdParam? adParam,
  4. AdListener? listener,
  5. RewardAdListener? rewardAdListener,
})

Implementation

InterstitialAd({
  required this.adSlotId,
  @deprecated this.openInHmsCore,
  AdParam? adParam,
  AdListener? listener,
  RewardAdListener? rewardAdListener,
}) : this.adParam = adParam ?? AdParam() {
  interstitialAds[id] = this;
  _streamInterstitial = EventChannel('$INTERSTITIAL_EVENT_CHANNEL/$id');
  _streamReward = EventChannel('$REWARD_EVENT_CHANNEL/$rId');
  _listener = listener;
  _rewardAdListener = rewardAdListener;
}