Middleware constructor

const Middleware(
  1. Type type, {
  2. bool async = true,
  3. Function? check,
})

Implementation

const Middleware(
  this.type, {
  this.async = true,
  this.check,
});