popUpTo
fun popUpTo(path: String, inclusive: Boolean = false, fallback: String? = null): NavigationBuilder(source)
Pop back to a specific route in the navigation stack.
Parameters
path
The route to pop back to
inclusive
If true, also removes the target route from the backstack
fallback
Optional fallback route if the target route is not found in the backstack.
inline suspend fun <T : Navigatable> popUpTo(inclusive: Boolean = false, preferredGraphId: String? = null, fallback: String? = null): NavigationBuilder(source)
Pop back to a specific screen type in the navigation stack.
Parameters
inclusive
If true, also removes the target route from the backstack
preferredGraphId
Optional graph ID to prefer when resolving the target
fallback
Optional fallback route if the target route is not found in the backstack.