addScriptToExecuteOnDocumentCreated method

  1. @override
void addScriptToExecuteOnDocumentCreated(
  1. String javaScript
)
override

Implementation

@override
void addScriptToExecuteOnDocumentCreated(String javaScript) {
  if (!(Platform.isWindows || Platform.isLinux || Platform.isMacOS)) {
    return;
  }
  assert(javaScript.trim().isNotEmpty);
  channel.invokeMethod("addScriptToExecuteOnDocumentCreated", {
    "viewId": viewId,
    "javaScript": javaScript,
  });
}