BannerAd constructor Null safety

const BannerAd(
  1. String placementId,
  2. BannerAdSize bannerSize,
  3. {Key? key,
  4. EmptyFunction? onAdLoaded,
  5. ErrorFunction? onError,
  6. EmptyFunction? onAdClicked}
)

Implementation

const BannerAd(
  this.placementId,
  this.bannerSize, {
  Key? key,
  this.onAdLoaded,
  this.onError,
  this.onAdClicked,
}) : super(key: key);