MessageFormatter<St> typedef

String MessageFormatter (
  1. St state,
  2. ReduxAction<St> action,
  3. bool ini,
  4. int dispatchCount,
  5. DateTime timestamp
)

A function that formats the message that will be logged:

final log = Log(formatter: onlyLogActionFormatter); var store = new Store(initialState: 0, actionObservers:log, stateObservers: ...);

Implementation

typedef MessageFormatter<St> = String Function(
  St state,
  ReduxAction<St> action,
  bool ini,
  int dispatchCount,
  DateTime timestamp,
);