BannerAd constructor
BannerAd({
- required String adSlotId,
- required BannerAdSize size,
- int? bannerRefreshTime,
- AdListener? listener,
- 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;
}