onNavigationRequestMobile property

FutureOr<NavigationActionPolicy> Function(String)? onNavigationRequestMobile
getter/setter pair

Called right before the URL of the webview is changed on mobile. This allows you to prevent URLs from loading, or launch them externally, for example.

This function passes the URL to be loaded, and you must return a NavigationActionPolicy to tell the webview what to do.

Implementation

FutureOr<NavigationActionPolicy> Function(String)? onNavigationRequestMobile;