filter method

void filter(
  1. dynamic condition,
  2. Middleware<T> filterMiddleware
)

Conditionally runs middleware or stops the chain

Implementation

void filter(condition, Middleware<T> filterMiddleware) {
  use(getFilterMiddleware(condition, filterMiddleware));
}