add method
Implementation
add({
required ActionType type,
required dynamic value,
}) {
_history.add(
Change(
_state,
() {
_actionsStack.add(
ActionStack(
type: ActionStackType.add,
action: Action(type: type, value: value),
),
);
_startExecution();
},
(val) {
// undo
},
),
);
}