getTapMiddleware<T> function
Runs the middleware and force call next()
Example:
getTapMiddleware((context) {
print('Context $context');
});
Implementation
// ignore: prefer_expression_function_bodies
Middleware<T> getTapMiddleware<T>(Middleware<T> middleware) {
return (context, next) async {
await middleware(context, noopNext);
await next();
};
}