postMessage method

  1. @override
void postMessage(
  1. String message
)

Callback method when javaScript calls postMessage on the object instance passed.

Implementation

@override
void postMessage(String message) {
  javascriptChannelRegistry.onJavascriptChannelMessage(channelName, message);
}