ApplyInterceptorConnection extension

Extension to wrap a DriftConnection with a QueryInterceptor.

on

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 as this, but replaces its executor by wrapping it with the interceptor.