undo / redo#

Undo and redo the most current action.

Signature#

undo
redo

Undo the current action. Can be invoked multiple times to step back in the state history. Redo steps forward in the undo history.