NextActionHandler typedef
NextActionHandler =
ActionHandler Function(ActionHandler next)
NextActionHandler takes the next ActionHandler in the middleware chain and returns an ActionHandler for the middleware
Implementation
typedef NextActionHandler = ActionHandler Function(ActionHandler next);