MaxAdView constructor

const MaxAdView({
  1. Key? key,
  2. required String adUnitId,
  3. required AdFormat adFormat,
  4. String? placement,
  5. String? customData,
  6. Map<String, String?>? extraParameters,
  7. Map<String, dynamic>? localExtraParameters,
  8. AdViewAdListener? listener,
  9. bool isAutoRefreshEnabled = true,
  10. bool visible = true,
  11. double? adaptiveBannerWidth,
})

Creates a new ad view directly in the user's widget tree.

Implementation

const MaxAdView({
  Key? key,
  required this.adUnitId,
  required this.adFormat,
  this.placement,
  this.customData,
  this.extraParameters,
  this.localExtraParameters,
  this.listener,
  this.isAutoRefreshEnabled = true,
  this.visible = true,
  this.adaptiveBannerWidth,
}) : super(key: key);