popUpTo

suspend fun popUpTo(route: String, inclusive: Boolean = false, fallback: String? = null)(source)

Pop up to a specific route in the backstack.

Parameters

route

Target route to pop back to

inclusive

If true, also removes the target route from backstack

fallback

Optional fallback route if the target route is not found