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