observe method

  1. @override
void observe(
  1. ReduxAction<St> action,
  2. int dispatchCount, {
  3. required bool ini,
})
override

If ini==true this is right before the action is dispatched. If ini==false this is right after the action finishes.

Implementation

@override
void observe(ReduxAction<St> action, int dispatchCount, {required bool ini}) {
  logger.log(
    level,
    formatter(null, action, ini, dispatchCount, DateTime.now()),
  );
}