hanleAdEvent function Null safety

void hanleAdEvent(
  1. dynamic data,
  2. OnAdEventListener listener
)

处理广告事件

Implementation

void hanleAdEvent(dynamic data, OnAdEventListener listener) {
  if (data != null) {
    AdEvent adEvent = AdEvent.fromJson(data);
    listener.call(adEvent);
  }
}