onNavigationRequest method Null safety

FutureOr<bool> onNavigationRequest(
  1. {required String url,
  2. required 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(
    {required String url, required bool isForMainFrame});