evaluateJavascript method

void evaluateJavascript(
  1. String script
)

Implementation

void evaluateJavascript(String script) async {
  if (_onPageFinishedCompleter.isCompleted) {
    _webviewController?.evaluateJavascript(source: script);
  } else {
    await _onPageFinishedCompleter.future.then((_) => _webviewController?.evaluateJavascript(source: script) ?? '');
  }
}