onLoadHttpError property
(void Function(InAppWebViewController controller, Uri? url, int statusCode, String description)?)
onLoadHttpError
getter/setter pairoverride-getter
Event fired when the WebView main page receives an HTTP error.
url
represents the url of the main page that received the HTTP error.
statusCode
represents the status code of the response. HTTP errors have status codes >= 400.
description
represents the description of the HTTP error. On iOS, it is always an empty string.
NOTE: available on Android 23+.
Official Android API: https://developer.android.com/reference/android/webkit/WebViewClient#onReceivedHttpError(android.webkit.WebView,%20android.webkit.WebResourceRequest,%20android.webkit.WebResourceResponse)
Official iOS API: https://developer.apple.com/documentation/webkit/wknavigationdelegate/1455643-webview
Implementation
@override
void Function(InAppWebViewController controller, Uri? url, int statusCode,
String description)? onLoadHttpError;