runOnResponse static method

Future<UnifiedResponse> runOnResponse(
  1. UnifiedResponse response,
  2. List<UnifiedInterceptor> interceptors
)

Implementation

static Future<UnifiedResponse> runOnResponse(
  UnifiedResponse response,
  List<UnifiedInterceptor> interceptors,
) async {
  var current = response;
  for (final interceptor in interceptors) {
    current = await interceptor.onResponse(current);
  }
  return current;
}