postWebMessageAsJson method

  1. @override
Future<void> postWebMessageAsJson(
  1. String webMessage
)
override

post a web message as JSON to the top level document in this WebView

Implementation

@override
Future<void> postWebMessageAsJson(String webMessage) async {
  return channel.invokeMethod("postWebMessageAsJson", {
    "viewId": viewId,
    "webMessage": webMessage,
  });
}