receiveAction method

ThunkAction<T> receiveAction(
  1. T state
)

Run when a store state is received from the listener

Implementation

ThunkAction<T> receiveAction(T state){
  return (Store<T> store) async {
    //Stores the box
    await onReceive(state);

    dispatch(SetState(state));
  };
}