AdmostBanner constructor

AdmostBanner({
  1. Key? key,
  2. required String adUnitId,
  3. required AdmostBannerSize adSize,
  4. void listener(
    1. AdmostAdEvent,
    2. Map<String, dynamic>
    )?,
  5. void onBannerCreated(
    1. AdmostBannerController?
    )?,
  6. String? tag,
})

Implementation

AdmostBanner({
  Key? key,
  required this.adUnitId,
  required this.adSize,
  this.listener,
  this.onBannerCreated,
  this.tag
}) : super(key: key) {
  if(adUnitId == null || adSize == null) {
    print("adUnitId or adSize cannot be null!");
  }
}