NavigationDelegate typedef Null safety

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 FutureOr<NavigationDecision> NavigationDelegate(NavigationRequest navigation);