NextDispatcher typedef

NextDispatcher = dynamic Function(dynamic action)

The contract between one piece of middleware and the next in the chain. Use it to send the current action in your Middleware to the next piece of Middleware in the chain.

Middleware can optionally pass the original action or a modified action to the next piece of middleware, or never call the next piece of middleware at all.

Implementation

typedef NextDispatcher = dynamic Function(dynamic action);