WebViewAndroidWebViewClient.handlesNavigation constructor

WebViewAndroidWebViewClient.handlesNavigation({
  1. required void onPageStartedCallback(
    1. String url
    ),
  2. required void onPageFinishedCallback(
    1. String url
    ),
  3. required void onWebResourceErrorCallback(
    1. WebResourceError error
    ),
  4. required FutureOr<bool> onNavigationRequestCallback({
    1. required bool isForMainFrame,
    2. required String url,
    })?,
  5. required Future<void> loadUrl(
    1. String url,
    2. Map<String, String>? headers
    )?,
})

Creates a WebViewAndroidWebViewClient that handles navigation requests.

Implementation

WebViewAndroidWebViewClient.handlesNavigation({
  required this.onPageStartedCallback,
  required this.onPageFinishedCallback,
  required this.onWebResourceErrorCallback,
  required this.onNavigationRequestCallback,
  required this.loadUrl,
}) : super(shouldOverrideUrlLoading: true);