AdmostInterstitial constructor
AdmostInterstitial({
- required String zoneId,
- void listener(
- AdmostAdEvent,
- Map<
String, dynamic>
Implementation
AdmostInterstitial({
required this.zoneId,
this.listener,
}) : super(listener) {
if (zoneId == null) {
print("zoneId cannot be null!");
} else {
id = hashCode;
if (listener != null) {
_adChannel = MethodChannel('admost_flutter/interstitial_$id');
_adChannel.setMethodCallHandler(handleEvent);
}
}
}