backOr

fun <T : NavKey> NavBackStack<T>.backOr(fallback: () -> Unit): Boolean

Goes back or runs fallback when the stack is already at its root.