canUndo

val canUndo: StateFlow<Boolean>

Whether there is a step to undo; collect it to enable or disable an undo button.