FetchInterceptor class abstract

Base class for FetchBloc interceptors.

Interceptors run in a pipeline around network calls:

  1. onRequest chain (sorted by priority, lowest first)
  2. Network call (Dio)
  3. 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)
Implementers

Constructors

FetchInterceptor()

Properties

hashCode int
The hash code for this object.
no setterinherited
priority int
Priority determines execution order.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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