Jetpack Compose, Android App Development, Mobile App Development, Kotlin, Kotlin Beginners.
matches the Screen.Detail.route, the NavHost will add the composable that is passed in to the lambda function (trailing closure) on to the stack and that screen will be displayed. We can also pass in parameters directly through our navigation as you can see in the Detail screen example below.