navigateBackTo

abstract fun <T : BaseRoute> navigateBackTo(popUpTo: KClass<T>, inclusive: Boolean = false)

Removes all entries from the backstack until T. If inclusive is true T itself will also be removed.