handleMethodCall static method

dynamic handleMethodCall(
  1. MethodCall methodCall
)

处理方法回调

Implementation

static handleMethodCall(MethodCall methodCall) {
  //Log.i(tag, "handleMethodCall:"+methodCall.method);
  Function? fun = _methodNameMap[methodCall.method];
  if (fun != null) {
    fun(methodCall.arguments);
  } else {
    Log.i(tag, "method not found");
  }
}