canUndo

abstract fun canUndo(): Boolean

Returns whether there are edits that can be undone or not. If this returns false a call to undo will throw an exception.

Return

true if an undo operation is possible, false otherwise.