record abstract method

void record(
  1. Object? state, {
  2. String? action,
  3. Object? payload,
  4. String? cause,
})

The state changed. action names what changed it, such as an event's type, and payload is shown with it. cause is action, set (no action), or init for the state a store starts with.

Implementation

void record(Object? state, {String? action, Object? payload, String? cause});