canUndo

abstract fun canUndo(): Boolean

Returns true if there are operations that can be undone. Also false while a Client.resyncAsync call on this document is between its discard and its re-anchor, even if the undo stack itself is non-empty.