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