use method

Wraps this Middleware with other.

Example:

middleware1.use(middleware2);

Implementation

ParamMiddleware use(ParamMiddleware other) {
  return (context, value, next) {
    return this(context, value, (value) => other(context, value, next));
  };
}