onNavigationRequest property

NavigationRequestCallback? onNavigationRequest
final

Invoked when a decision for a navigation request is pending.

When a navigation is initiated by the WebView (e.g when a user clicks a link) this delegate is called and has to decide how to proceed with the navigation.

Important: Some platforms may also trigger this callback from calls to WebViewController.loadRequest.

See NavigationDecision.

Implementation

final NavigationRequestCallback? onNavigationRequest;