AdmostNativeAd constructor

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

Implementation

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