javascriptChannelCall property

String Function(String channelName, String data) javascriptChannelCall
final

Returns a String which can be used in evaluateJavascript to call the channel with the given data.

WARNING: Based on the webview plugin you use, the format of the string might differ. Please refer to the documentation to know the format of the String you should return.

Example for the webview_flutter plugin:

javascriptChannelCall: (channelName, data) => 'widget.$channelName.postMessage($data)',

Implementation

final String Function(String channelName, String data) javascriptChannelCall;