afterResponse method
Called before the response is returned.
Implementation
@override
Future<InterceptorResult<HttpResponse>> afterResponse(
HttpResponse response) async {
return await _afterResponse?.call(response) ?? Interceptor.next(response);
}