onNavigationRequest abstract method

FutureOr<bool> onNavigationRequest({
  1. String? url,
  2. bool? isForMainFrame,
})

Invoked by WebViewPlatformController when a navigation request is pending.

If true is returned the navigation is allowed, otherwise it is blocked.

Implementation

FutureOr<bool> onNavigationRequest({String? url, bool? isForMainFrame});