NavigationDelegate.fromPlatformCreationParams constructor

NavigationDelegate.fromPlatformCreationParams(
  1. PlatformNavigationDelegateCreationParams params, {
  2. FutureOr<NavigationDecision> onNavigationRequest(
    1. NavigationRequest request
    )?,
  3. void onPageStarted(
    1. String url
    )?,
  4. void onPageFinished(
    1. String url
    )?,
  5. void onProgress(
    1. int progress
    )?,
  6. void onWebResourceError(
    1. WebResourceError error
    )?,
})

Constructs a NavigationDelegate from creation params for a specific platform.

Implementation

NavigationDelegate.fromPlatformCreationParams(
  PlatformNavigationDelegateCreationParams params, {
  FutureOr<NavigationDecision> Function(NavigationRequest request)?
      onNavigationRequest,
  void Function(String url)? onPageStarted,
  void Function(String url)? onPageFinished,
  void Function(int progress)? onProgress,
  void Function(WebResourceError error)? onWebResourceError,
}) : this.fromPlatform(
        PlatformNavigationDelegate(params),
        onNavigationRequest: onNavigationRequest,
        onPageStarted: onPageStarted,
        onPageFinished: onPageFinished,
        onProgress: onProgress,
        onWebResourceError: onWebResourceError,
      );