onAjaxReadyStateChange method Null safety

Future<AjaxRequestAction?>? onAjaxReadyStateChange(
  1. AjaxRequest ajaxRequest
)

Event fired whenever the readyState attribute of an XMLHttpRequest changes. It gives the host application a chance to abort the request.

ajaxRequest represents the XMLHttpRequest.

NOTE: In order to be able to listen this event, you need to set InAppWebViewOptions.useShouldInterceptAjaxRequest option to true.

Implementation

Future<AjaxRequestAction?>? onAjaxReadyStateChange(AjaxRequest ajaxRequest) {}