postMessage method

Future<void> postMessage(
  1. String javaScript
)

Implementation

Future<void> postMessage(String javaScript) async {
  // final RegExpMatch? match =
  // RegExp(r'WebViewJavascriptBridge.nativeCall\("(?<data>[\s\S]*)"\)')
  //     .firstMatch(javaScript);
  // if (match != null) {
  //   final String data = match.namedGroup('data') ?? '';
  //   _webWebViewParams.iFrame.contentWindow?.postMessage(data, '*');
  // }
  _webWebViewParams.iFrame.contentWindow?.postMessage(javaScript, '*');
}