middleware method

void middleware(
  1. Iterable<Middleware> func
)

Implementation

void middleware(Iterable<Middleware> func) {
  if (func.isEmpty) return;
  final mdwDefn =
      _MiddlewareDefinition(func.reduce((val, e) => val.chain(e)), route);
  defns.insert(0, mdwDefn);
}