Android, Jetpack Compose, Android App Development, Mobile App Development, Programming.
new version, constructors accept custom types, not only strings. That is why, we can pass our data class and everything is fine. val navController = rememberNavController() NavHost( navController = navController, startDestination = Routes.FirstScreen, // custom type ) { ... } Secondly, to declare