initialize method

  1. @override
void initialize({
  1. required WebViewJSChannelHandler handler,
})
override

Initialize the delegate allowing to execute some tasks earlier before the build of the WebView widget.

This WebView widget should add the JavaScript Channel using handler through the WebView controller like with the addJavaScriptChannel of the package webview_flutter.

Implementation

@override
void initialize({required WebViewJSChannelHandler handler}) {
  addJavaScriptChannel(handler);
}