requestInterceptor property

RequestInterceptor? requestInterceptor
getter/setter pair

Hook into the request lifecycle right before the request is sent.

If not null, this function will be called with the BaseRequest instance as the first argument. This function should return a Future, and the request will not be sent until the returned Future completes.

The request instance cannot be replaced, it must be modified in place.

Implementation

RequestInterceptor? requestInterceptor;