Middleware<T extends Context> typedef
Null safety
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);