execute method
For internal use only. Implementation detail that may change anytime.
Evaluates the JavaScript statement given.
Implementation
void execute(String statement) {
final controller = _webViewController;
if (_completer.isCompleted) {
if (kDebugMode) {
print('📗 session.execute: $statement');
}
controller!.evaluateJavascript(source: statement);
} else {
if (kDebugMode) {
print('📘 session.execute: $statement');
}
this._pending.add(statement);
}
}