myUtilsHandler static method

Future myUtilsHandler(
  1. MethodCall methodCall,
  2. FullScreenAdCallbacks fullScreenAdCallbacks
)

Implementation

static Future<dynamic> myUtilsHandler(
  MethodCall methodCall,
  FullScreenAdCallbacks fullScreenAdCallbacks,
) async {
  print(methodCall.method);
  print("AppOPen =========>");

  switch (methodCall.method) {
    case "loaded_appOpen":
      fullScreenAdCallbacks.onLoad(methodCall.arguments);
      break;
    case "failed_load_appOpen":
      fullScreenAdCallbacks.onAdLoadFail(methodCall.arguments);
      break;
    case "open_appOpen":
      fullScreenAdCallbacks.onAdOpen(methodCall.arguments);
      break;
    case "failed_open_AppOpen":
      fullScreenAdCallbacks.onAdOpenFail(methodCall.arguments);
      break;
    case "close_inter":
      fullScreenAdCallbacks.onClose(methodCall.arguments);
      break;
    default:
      print("Default Case ${methodCall.arguments}");
  }
}