call method

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

Implementation

Object call(method, {List<Object>? args}) async =>
    await _controller.runJavaScriptReturningResult(
      "call('" + method + "','" + json.encode(args ?? []) + "');",
    );