PopUpOptions

fun <T : Route> PopUpOptions(dest: KClass<out T>, inclusive: Boolean = false, all: Boolean = false)

Parameters

inclusive

Include this destination to be popped as well.

all

There could be situation where multiple destinations could be present on the backstack, this will recursively pop till the first one in the backstack. Otherwise, the last added one will be chosen.