onResponse method
Called when the response is about to be resolved.
Implementation
@override
void onResponse(
Response<dynamic> response,
ResponseInterceptorHandler handler,
) {
if (_onResponse != null) {
_onResponse!(response, handler);
} else {
handler.next(response);
}
}