ApplyInterceptor extension
Extension to wrap a DriftSession with a QueryInterceptor.
- on
Methods
-
interceptWith(
QueryInterceptor interceptor, {bool sticky = true}) → DriftSession -
Available on DriftSession, provided by the ApplyInterceptor extension
Returns a DriftSession that will usethisexecutor internally, but with calls intercepted by the giveninterceptor.