runJavaScriptReturningResult method
Runs the given JavaScript in the context of the current page, and returns the result.
The Future completes with an error if a JavaScript error occurred, or if
the type the given expression evaluates to is unsupported. Unsupported
values include certain non-primitive types on iOS, as well as undefined
or null
on iOS 14+.
Implementation
Future<Object> runJavaScriptReturningResult(String javaScript) {
return platform.runJavaScriptReturningResult(javaScript);
}