objectCall method

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

Implementation

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