canRedo method

bool canRedo()

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

Implementation

bool canRedo() => current != null && current!.next != null;