navigateTo

fun NavController.navigateTo(screen: NavScreen)


inline fun NavController.navigateTo(screen: NavScreen, args: ComposeNavArgBuilder.() -> Unit)

Replacement for NavController.navigate that allows type-safe setting of arguments Usage: navController.navigateTo(Screen) { set(Screen.Arg1, "someValue") set(Screen.Arg2, 42) }