Android, Jetpack Compose, Navigation, Type Safety, Kotlin.
BookDetailScreen( modifier: Modifier = Modifier, book: Book, ) { Column( modifier = modifier.fillMaxSize().padding(16.dp), verticalArrangement = Arrangement.spacedBy(8.dp), ) { Text("Id: ${book.id}") Text("Title: ${book.title}") } } We’ve replaced the bookId: Int param with book: Book. We’ve