handleEvent method
Implementation
Future<void> handleEvent(MethodCall call) async {
if (_listener == null) {
return;
}
print("EVENT HANDLER ---> ${call.method} _listener ---> $_listener");
switch (call.method) {
case 'success':
case 'SUCCESS':
_listener!(AdmobAdEvent.success, null);
break;
case 'error':
case 'ERROR':
print("EVENT HANDLER ---> ${call.method} _listener ---> $_listener");
_listener!(AdmobAdEvent.error, null);
break;
}
}