ConditionalInterceptor constructor
ConditionalInterceptor({
- required bool condition(),
- 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,
});