MaxNativeAdView constructor

const MaxNativeAdView({
  1. Key? key,
  2. required String adUnitId,
  3. String? placement,
  4. String? customData,
  5. Map<String, String?>? extraParameters,
  6. Map<String, dynamic>? localExtraParameters,
  7. NativeAdListener? listener,
  8. double? width = double.infinity,
  9. double? height = double.infinity,
  10. MaxNativeAdViewController? controller,
  11. required Widget child,
})

Creates a native ad view with the native ad components. The user needs to lay out a native ad view with the native ad components using the standard Flutter widgets.

Implementation

const MaxNativeAdView({
  Key? key,
  required this.adUnitId,
  this.placement,
  this.customData,
  this.extraParameters,
  this.localExtraParameters,
  this.listener,
  this.width = double.infinity,
  this.height = double.infinity,
  this.controller,
  required this.child,
}) : super(key: key);