resetToRoot

open override fun resetToRoot(root: NavRoot)(source)

Reset the back stack to the given root. The current back stack will cleared and if root was already on it it will be recreated.