NavigationDelegate typedef

NavigationDelegate = FutureOr<NavigationDecision> Function(NavigationRequest navigation)

Decides how to handle a specific navigation request.

The returned NavigationDecision determines how the navigation described by navigation should be handled.

See also: WebView.navigationDelegate.

Implementation

typedef NavigationDelegate = FutureOr<NavigationDecision> Function(
    NavigationRequest navigation);