FetchInterceptor class abstract
Base class for FetchBloc interceptors.
Interceptors run in a pipeline around network calls:
- onRequest chain (sorted by priority, lowest first)
- Network call (Dio)
- onResponse chain (reverse order) OR onError chain
Key points:
- Interceptors run AFTER cache lookup and coalescer check
- They only execute for actual network calls, not cache hits
- onRequest runs in priority order (lowest first)
- onResponse/onError run in reverse order (highest priority last)
Constructors
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onError(
DioException error) → Future - Called on error.
-
onRequest(
RequestOptions options) → Future< RequestOptions> - Called before request is sent.
-
onResponse(
Response response) → Future< Response> - Called after successful response.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited