Created
April 17, 2026 17:28
-
-
Save AndroidPoet/94731ceefcb3e155068e2b9e8e199e4d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sealed class Route { | |
| data object Home : Route() | |
| data class Profile(val userId: String, val postsCount: Int) : Route() | |
| } | |
| navController.navigate(Route.Profile(userId = "123", postsCount = 42)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment