onReceivedHttpError property

void Function(T controller, WebResourceRequest request, WebResourceResponse errorResponse)? onReceivedHttpError
final

Event fired when the WebView receives an HTTP error.

request represents the originating request.

errorResponse represents the information about the error occurred.

NOTE: available on Android 23+.

Officially Supported Platforms/Implementations:

Implementation

final void Function(T controller, WebResourceRequest request,
    WebResourceResponse errorResponse)? onReceivedHttpError;