JSChannelWebViewWrapperDelegate constructor

const JSChannelWebViewWrapperDelegate({
  1. required AddJSChannelCallback addJavaScriptChannel,
  2. required WidgetBuilder builder,
})

Creates an instance of JSChannelWebViewWrapperDelegate used to inject user script in the WebView.

The JavaScript channel should be added through the WebView controller like with the addJavaScriptChannel of the package webview_flutter

Implementation

const JSChannelWebViewWrapperDelegate({
  required this.addJavaScriptChannel,
  required this.builder,
});