PlaywireBannerView constructor

const PlaywireBannerView({
  1. Key? key,
  2. required String adUnitId,
  3. bool autoload = true,
  4. Map<String, String>? targeting,
  5. VoidCallback? onAdLoaded,
  6. void onAdFailedToLoad({
    1. int? code,
    2. String? message,
    })?,
  7. VoidCallback? onAdOpened,
  8. VoidCallback? onAdClosed,
  9. VoidCallback? onAdImpression,
  10. VoidCallback? onAdClicked,
  11. PlaywireBannerController? controller,
  12. int? width,
  13. int? height,
})

Implementation

const PlaywireBannerView({
  super.key,
  required this.adUnitId,
  this.autoload = true,
  this.targeting,
  this.onAdLoaded,
  this.onAdFailedToLoad,
  this.onAdOpened,
  this.onAdClosed,
  this.onAdImpression,
  this.onAdClicked,
  this.controller,
  this.width,
  this.height,
});