WebKitJavaScriptChannelParams.fromJavaScriptChannelParams constructor
WebKitJavaScriptChannelParams.fromJavaScriptChannelParams(
- JavaScriptChannelParams params, {
- @visibleForTesting WebKitProxy webKitProxy = const WebKitProxy(),
Constructs a WebKitJavaScriptChannelParams using a
JavaScriptChannelParams
.
Implementation
WebKitJavaScriptChannelParams.fromJavaScriptChannelParams(
JavaScriptChannelParams params, {
@visibleForTesting WebKitProxy webKitProxy = const WebKitProxy(),
}) : this(
name: params.name,
onMessageReceived: params.onMessageReceived,
webKitProxy: webKitProxy,
);