evaluateJavascript method

Future<String> evaluateJavascript(
  1. String javascript
)

Evaluates a JavaScript expression in the context of the current page.

The Future completes with an error if a JavaScript error occurred, or if the type of the evaluated expression is not supported (e.g on iOS not all non-primitive types can be evaluated).

Implementation

Future<String> evaluateJavascript(String javascript) {
  throw UnimplementedError(
      'WebView evaluateJavascript is not implemented on the current platform');
}