evaluateJavascript method
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
@override
Future<String> evaluateJavascript(String javascript) {
return _channel
.invokeMethod<String>('evaluateJavascript', javascript)
.then((String? result) => result!);
}