runJavaScript method

Future<void> runJavaScript(
  1. String javaScript
)

Runs the given JavaScript in the context of the current page.

The Future completes with an error if a JavaScript error occurred.

Implementation

Future<void> runJavaScript(String javaScript) {
  return platform.runJavaScript(javaScript);
}