postWebMessageAsString method

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

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

Implementation

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