canUndo method

bool canUndo()

Whether or not an undo can be performed. This is the case when the tree is initialized and there is an prev element.

Implementation

bool canUndo() => current != null && current!.prev != null;