AdmostNativeAd constructor
AdmostNativeAd({
- Key? key,
- required String adUnitId,
- required AdmostBannerSize adSize,
- void listener(
- AdmostAdEvent,
- Map<
String, dynamic>
- void onNativeAdCreated()?,
- String? xibNameForIOS,
- 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!");
}
}