PlatformNavigationDelegate constructor

PlatformNavigationDelegate(
  1. PlatformNavigationDelegateCreationParams params
)

Implementation

factory PlatformNavigationDelegate(
    PlatformNavigationDelegateCreationParams params) {
  assert(
  WebViewPlatform.instance != null,
  'A platform implementation for `webview_flutter` has not been set. Please '
      'ensure that an implementation of `WebViewPlatform` has been set to '
      '`WebViewPlatform.instance` before use. For unit testing, '
      '`WebViewPlatform.instance` can be set with your own test implementation.',
  );
  final PlatformNavigationDelegate callbackDelegate =
  WebViewPlatform.instance!.createPlatformNavigationDelegate(params);
  PlatformInterface.verify(callbackDelegate, _token);
  return callbackDelegate;
}