before method

void before(
  1. Middleware<T> beforeMiddleware,
  2. Middleware<T> middleware
)

Runs the second middleware before the main

Implementation

void before(Middleware<T> beforeMiddleware, Middleware<T> middleware) {
  use(getBeforeMiddleware(beforeMiddleware, middleware));
}