update method
Implementation
update({
required ActionType type,
required dynamic value,
required String id,
}) {
final Entity oldValue = _state[type][id].clone();
_history.add(
Change(
oldValue,
() {
_actionsStack.add(
ActionStack(
type: ActionStackType.update,
action: Action(
type: type,
value: value,
id: id,
),
),
);
_startExecution();
},
(val) {
_state[type][id] = val;
},
),
);
}