addInterceptor method

void addInterceptor(
  1. Interceptor interceptor
)

Add a new interceptor to be executed against all requests

Implementation

void addInterceptor(Interceptor interceptor) {
  dio.interceptors.add(interceptor);
}