ApplyInterceptorConnection extension
Extension to wrap a DriftConnection with a QueryInterceptor.
Methods
-
interceptWith(
QueryInterceptor interceptor, {bool sticky = true}) → DriftConnection -
Available on DriftConnection, provided by the ApplyInterceptorConnection extension
Returns a DriftConnection that will use the same stream queries asthis, but replaces its executor by wrapping it with theinterceptor.