NativeAd constructor

const NativeAd({
  1. Key? key,
  2. required AdLayoutBuilder buildLayout,
  3. AdTextView? advertiser,
  4. AdTextView? attribution,
  5. AdTextView? body,
  6. AdButtonView? button,
  7. AdTextView? headline,
  8. AdImageView? icon,
  9. AdMediaView? media,
  10. AdTextView? price,
  11. AdRatingBarView? ratingBar,
  12. AdTextView? store,
  13. NativeAdController? controller,
  14. String? unitId,
  15. Widget? error,
  16. Widget? loading,
  17. double? height,
  18. double? width,
  19. NativeAdOptions? options,
  20. bool reloadWhenOptionsChange = true,
  21. AdBuilder? builder,
  22. Duration? delayToShow,
  23. Duration? loadTimeout,
  24. bool? useHybridComposition,
  25. bool? nonPersonalizedAds,
  26. List<String> keywords = const [],
})

Implementation

const NativeAd({
  Key? key,
  required this.buildLayout,
  this.advertiser,
  this.attribution,
  this.body,
  this.button,
  this.headline,
  this.icon,
  this.media,
  this.price,
  this.ratingBar,
  this.store,
  this.controller,
  this.unitId,
  this.error,
  this.loading,
  this.height,
  this.width,
  this.options,
  this.reloadWhenOptionsChange = true,
  this.builder,
  this.delayToShow,
  this.loadTimeout,
  this.useHybridComposition,
  this.nonPersonalizedAds,
  this.keywords = const [],
}) : super(key: key);