NativeAd constructor
NativeAd({
- Key? key,
- String placementId = NativeAd.testPlacementId,
- NativeAdListener? listener,
- required NativeAdType adType,
- NativeBannerAdSize bannerAdSize = NativeBannerAdSize.HEIGHT_50,
- double width = double.infinity,
- double height = 250,
- Color? backgroundColor,
- Color? titleColor,
- Color? descriptionColor,
- Color? labelColor,
- Color? buttonColor,
- Color? buttonTitleColor,
- Color? buttonBorderColor,
- bool isMediaCover = false,
- bool keepAlive = false,
- bool keepExpandedWhileLoading = true,
- int expandAnimationDuraion = 0,
This widget can be used to display customizable native ads and native banner ads.
Implementation
NativeAd({
Key? key,
this.placementId = NativeAd.testPlacementId,
this.listener,
required this.adType,
this.bannerAdSize = NativeBannerAdSize.HEIGHT_50,
this.width = double.infinity,
this.height = 250,
this.backgroundColor,
this.titleColor,
this.descriptionColor,
this.labelColor,
this.buttonColor,
this.buttonTitleColor,
this.buttonBorderColor,
this.isMediaCover = false,
this.keepAlive = false,
this.keepExpandedWhileLoading = true,
this.expandAnimationDuraion = 0,
}) : super(key: key);