ConditionalInterceptor constructor

ConditionalInterceptor({
  1. required bool condition(
    1. FittorRequest
    ),
  2. required FittorInterceptor interceptor,
})

Creates a conditional interceptor

condition Function that determines whether to execute the interceptor interceptor The interceptor to execute when condition is true

Implementation

ConditionalInterceptor({
  required this.condition,
  required this.interceptor,
});