Middleware<T extends Context> typedef
Middleware, it is an asynchronous function that accepts a Context and a future for the next function.
Implementation
typedef Middleware<T extends Context> = Future<void> Function(
T ctx,
FutureOr<void> Function() next,
);