FastSmartNativeAd constructor

const FastSmartNativeAd({
  1. Key? key,
  2. FastAdSize adSize = FastAdSize.medium,
  3. WidgetBuilder? fallbackBuilder,
  4. String? debugLabel,
  5. String? country,
  6. FastAdInfo? adInfo,
  7. Widget? loadingWidget,
  8. String? language,
  9. Widget? placeholder,
  10. FastAdSlotDelegate? delegate,
  11. String? adId,
  12. VoidCallback? onRemoveAdLinkTap,
  13. Duration? refreshInterval,
  14. bool? showRemoveAdLink,
  15. bool? autoRefresh,
})

Implementation

const FastSmartNativeAd({
  super.key,
  this.adSize = FastAdSize.medium,
  this.fallbackBuilder,
  this.debugLabel,
  this.country,
  this.adInfo,
  this.loadingWidget,
  this.language,
  this.placeholder,
  this.delegate,
  this.adId,
  this.onRemoveAdLinkTap,
  this.refreshInterval,
  this.showRemoveAdLink,
  this.autoRefresh,
}) : assert(
        adSize == FastAdSize.medium,
        'Only support native ad with a height of 120px',
      );