onNavigationResponse method

Future<NavigationResponseAction?>? onNavigationResponse(
  1. NavigationResponse navigationResponse
)

Called when a web view asks for permission to navigate to new content after the response to the navigation request is known.

navigationResponse represents the navigation response.

NOTE: In order to be able to listen this event, you need to set InAppWebViewSettings.useOnNavigationResponse setting to true.

Officially Supported Platforms/Implementations:

Implementation

Future<NavigationResponseAction?>? onNavigationResponse(
    NavigationResponse navigationResponse) {
  return null;
}