record abstract method
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});