undo

suspend fun undo(require: Boolean = false): Int

Undo the event at current _index. You cannot undo and redo while another undo/redo is running!