callJSObjectMethod function

dynamic callJSObjectMethod(
  1. Object o,
  2. String method, [
  3. List? args
])

Calls JavaScript a method in object o with args.

Implementation

dynamic callJSObjectMethod(Object o, String method, [List? args]) {
  return callMethod(o, method, args ?? []);
}