copy method

  1. @override
WebViewClient copy()
inherited

Instantiates and returns a functionally identical object to oneself.

Outside of tests, this method should only ever be called by InstanceManager.

Subclasses should always override their parent's implementation of this method.

Implementation

@override
WebViewClient copy() {
  return WebViewClient.detached(
    shouldOverrideUrlLoading: shouldOverrideUrlLoading,
    onPageStarted: onPageStarted,
    onPageFinished: onPageFinished,
    onReceivedRequestError: onReceivedRequestError,
    onReceivedError: onReceivedError,
    requestLoading: requestLoading,
    urlLoading: urlLoading,
  );
}