applyFunction method

dynamic applyFunction(
  1. String? thisRef,
  2. List arguments,
  3. String objectRef
)

Implementation

dynamic applyFunction(
  String? thisRef,
  List<dynamic> arguments,
  String objectRef,
) {
  if (!kIsMPFlutterDevmode) {
    throw "未开启 MPFlutter Debugger 标志,MPJS 调用失败。";
  }
  final result = IsolateDevServer.shared.invokeMethod(
    _MPJSMethodList.applyFunction,
    {
      "thisRef": thisRef,
      "arguments": arguments,
      "objectRef": objectRef,
    },
  );
  return result;
}