addInterceptor method

void addInterceptor({
  1. required InterceptorType type,
  2. required dynamic interceptor,
})

添加拦截器 type 拦截器类型 interceptor 子拦截器

Implementation

void addInterceptor({required InterceptorType type, required dynamic interceptor}) {
  _interceptorMap[type.name] = interceptor;
}