MethodChannelWebViewPlatform constructor
MethodChannelWebViewPlatform(
- int id,
- WebViewPlatformCallbacksHandler _platformCallbacksHandler,
- JavascriptChannelRegistry _javascriptChannelRegistry
Constructs an instance that will listen for webviews broadcasting to the
given id
, using the given WebViewPlatformCallbacksHandler.
Implementation
MethodChannelWebViewPlatform(
int id,
this._platformCallbacksHandler,
this._javascriptChannelRegistry,
) : assert(_platformCallbacksHandler != null),
_channel = MethodChannel('plugins.flutter.io/webview_$id') {
_channel.setMethodCallHandler(_onMethodCall);
}