jnschulze / flutter-webview-windows

A WebView2-powered Flutter WebView implementation for the Windows platform.
BSD 3-Clause "New" or "Revised" License
195 stars 109 forks source link

how to add addJavaScriptChannel? #284

Open JemmyWang94 opened 4 months ago

JemmyWang94 commented 4 months ago

how to add addJavaScriptChannel? such as webview_flutter Future addJavaScriptChannel( String name, { required void Function(JavaScriptMessage) onMessageReceived, }) { assert(name.isNotEmpty); return platform.addJavaScriptChannel(JavaScriptChannelParams( name: name, onMessageReceived: onMessageReceived, )); }

cjltgb520 commented 1 month ago

I have the same question, have you solved it?