InterceptorCallback<T> class

Organize interceptors

Constructors

InterceptorCallback()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

eject(InterceptorResolver<T> interceptor) → void
Remove an interceptor.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resolveErrorTest(UnoError error) Future
only test
resolveTest(T data) Future<T>
only test
toString() String
A string representation of this object.
inherited
use(FutureOr<T> resolve(T), {FutureOr onError(UnoError)?, bool runWhen(T)?}) InterceptorResolver<T>
Creates a new interceptor. resolve: Resolve request or response. onError: Resolve error. runWhen: Condition of run interceptor.

Operators

operator ==(Object other) bool
The equality operator.
inherited