objectCall method

Object objectCall(
  1. dynamic obj,
  2. dynamic method, {
  3. List<Object>? args,
})

Implementation

Object objectCall(obj, method, {List<Object>? args}) async {
  final script =
      "objectCall('${_escape(json.encode(obj))}', '$method', '${_escape(json.encode(args ?? []))}');";
  return await _controller.runJavaScriptReturningResult(script);
}