onLoadHttpError property Null safety

(void Function?(InAppWebViewController controller, Uri? url, int statusCode, String description)?) onLoadHttpError

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:,%20android.webkit.WebResourceRequest,%20android.webkit.WebResourceResponse)

Official iOS API:


final void Function(InAppWebViewController controller, Uri? url,
    int statusCode, String description)? onLoadHttpError;