onReceivedHttpAuthRequest property Null safety

(Future<HttpAuthResponse?> Function?(InAppWebViewController controller, HttpAuthenticationChallenge challenge)?) onReceivedHttpAuthRequest
final

Event fired when the WebView received an HTTP authentication request. The default behavior is to cancel the request.

challenge contains data about host, port, protocol, realm, etc. as specified in the URLAuthenticationChallenge.

Official Android API: https://developer.android.com/reference/android/webkit/WebViewClient#onReceivedHttpAuthRequest(android.webkit.WebView,%20android.webkit.HttpAuthHandler,%20java.lang.String,%20java.lang.String)

Official iOS API: https://developer.apple.com/documentation/webkit/wknavigationdelegate/1455638-webview

Implementation

final Future<HttpAuthResponse?> Function(InAppWebViewController controller,
    HttpAuthenticationChallenge challenge)? onReceivedHttpAuthRequest;