SmartNativeAdView constructor

const SmartNativeAdView({
  1. Key? key,
  2. String? adUnitId,
  3. TemplateType templateType = TemplateType.medium,
  4. NativeTemplateStyle? nativeTemplateStyle,
  5. AdRequest? adRequest,
  6. CustomAdModel? customAd,
  7. String? factoryId,
  8. double cornerRadius = 12.0,
  9. bool showOfflineFallback = true,
  10. VoidCallback? onAdLoaded,
  11. dynamic onAdFailedToLoad(
    1. LoadAdError error
    )?,
  12. VoidCallback? onAdClicked,
  13. OnPaidEventCallback? onPaidEvent,
  14. Widget? placeholder,
  15. Widget? customOfflineWidget,
  16. 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,
});