MiddlewareApi

MiddlewareApi<S> = ({void Function(Action action) dispatch, S Function() getState})

The API available to middleware.

Implementation

typedef MiddlewareApi<S> = ({
  S Function() getState,
  void Function(Action action) dispatch,
});