valueOfObject method

dynamic valueOfObject(
  1. dynamic key,
  2. String objectRef
)

Implementation

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