FastSmartNativeAd constructor
const
FastSmartNativeAd({
- Key? key,
- FastAdSize adSize = FastAdSize.medium,
- WidgetBuilder? fallbackBuilder,
- String? debugLabel,
- String? country,
- FastAdInfo? adInfo,
- Widget? loadingWidget,
- String? language,
- Widget? placeholder,
- FastAdSlotDelegate? delegate,
- String? adId,
- VoidCallback? onRemoveAdLinkTap,
- Duration? refreshInterval,
- bool? showRemoveAdLink,
- 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',
);