SmartNativeAdView constructor
const
SmartNativeAdView({
- Key? key,
- String? adUnitId,
- TemplateType templateType = TemplateType.medium,
- NativeTemplateStyle? nativeTemplateStyle,
- AdRequest? adRequest,
- CustomAdModel? customAd,
- String? factoryId,
- double cornerRadius = 12.0,
- bool showOfflineFallback = true,
- VoidCallback? onAdLoaded,
- dynamic onAdFailedToLoad(
- LoadAdError error
- VoidCallback? onAdClicked,
- OnPaidEventCallback? onPaidEvent,
- Widget? placeholder,
- Widget? customOfflineWidget,
- NetworkInfo? networkInfo,
Implementation
const SmartNativeAdView({
super.key,
this.adUnitId,
this.templateType = TemplateType.medium,
this.nativeTemplateStyle,
this.adRequest,
this.customAd,
this.factoryId,
this.cornerRadius = 12.0,
this.showOfflineFallback = true,
this.onAdLoaded,
this.onAdFailedToLoad,
this.onAdClicked,
this.onPaidEvent,
this.placeholder,
this.customOfflineWidget,
this.networkInfo,
});