reset method
void
reset()
Clears all the states.
Implementation
void reset() {
_states.clear();
_mementoObserver.clear();
onClear = null;
onRead = null;
onRedo = null;
onUndo = null;
onUse = null;
onWrite = null;
}