SmartBannerAdView constructor
const
SmartBannerAdView({
- Key? key,
- String? adUnitId,
- AdSize adSize = AdSize.banner,
- AdRequest? adRequest,
- CustomAdModel? customAd,
- bool showOfflineFallback = true,
- VoidCallback? onAdLoaded,
- dynamic onAdFailedToLoad(
- LoadAdError error
- VoidCallback? onAdClicked,
- OnPaidEventCallback? onPaidEvent,
- Widget? placeholder,
- Widget? customOfflineWidget,
- NetworkInfo? networkInfo,
Implementation
const SmartBannerAdView({
super.key,
this.adUnitId,
this.adSize = AdSize.banner,
this.adRequest,
this.customAd,
this.showOfflineFallback = true,
this.onAdLoaded,
this.onAdFailedToLoad,
this.onAdClicked,
this.onPaidEvent,
this.placeholder,
this.customOfflineWidget,
this.networkInfo,
});