use method

Middleware use(
  1. Middleware other
)

Wraps this Middleware with other.

Example:

middleware1.use(middleware2);

Implementation

Middleware use(Middleware other) {
  return (Context context, Next next) {
    return this(context, () => other(context, next));
  };
}