onResponse method
Called when the response is about to be resolved.
Implementation
@override
void onResponse(Response response, ResponseInterceptorHandler handler) {
super.onResponse(response, handler);
// store set-cookie
response.headers.forEach((key, value) {
if (key.toLowerCase() == "set-cookie") {
setDataDomeCookie(value.first);
}
});
EventTracker().sendEventPayload();
}