callJSFunction function

dynamic callJSFunction(
  1. String method, [
  2. List? args
])

Calls JavaScript a function method with args.

Implementation

dynamic callJSFunction(String method, [List? args]) {
  return context.callMethod(method, args);
}