navigateTo
inline fun NavController.navigateTo(screen: NavScreen, args: ComposeNavArgBuilder.() -> Unit)
Content copied to clipboard
Replacement for NavController.navigate that allows type-safe setting of arguments Usage: navController.navigateTo(Screen) { set(Screen.Arg1, "someValue") set(Screen.Arg2, 42) }