WebKitJavaScriptChannelParams.fromJavaScriptChannelParams constructor

WebKitJavaScriptChannelParams.fromJavaScriptChannelParams(
  1. JavaScriptChannelParams params, {
  2. @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,
      );