notifyListener method

  1. @override
void notifyListener(
  1. MethodCall call
)
override

Implementation

@override
void notifyListener(MethodCall call) {
  if (listener != null) {
    AdfurikunRectangleCallback? callback = _callbackMap[call.method];
    String? appId = call.arguments[KEY_APP_ID];
    String? adNetworkKey = call.arguments[KEY_AD_NETWORK_KEY];
    String? title = call.arguments[KEY_TITLE];
    String? description = call.arguments[KEY_DESCRIPTION];
    int? errorCode = call.arguments[KEY_ERROR_CODE];
    List<AdNetworkError>? adNetworkErrorList = convertAdNetworkErrorList(call.arguments[KEY_AD_NETWORK_ERROR_LIST]);
    listener!(callback, appId, adNetworkKey, title, description, errorCode, adNetworkErrorList);
  } else {
    print('AdfurikunRectangleListener is null');
  }
}