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 use this executor internally, but with calls intercepted by the given interceptor.