Whether or not an undo can be performed. This is the case when the tree is initialized and there is an prev element.
prev
bool canUndo() => current != null && current!.prev != null;