BannerAd constructor

BannerAd({
  1. required String adSlotId,
  2. required BannerAdSize size,
  3. int? bannerRefreshTime,
  4. AdListener? listener,
  5. AdParam? adParam,
})

Implementation

BannerAd({
  required this.adSlotId,
  required this.size,
  this.bannerRefreshTime,
  AdListener? listener,
  AdParam? adParam,
}) : this.adParam = adParam ?? AdParam() {
  bannerAds[id] = this;
  _streamBanner = EventChannel('$BANNER_EVENT_CHANNEL/$id');
  _listener = listener;
}