Skip to content

Instantly share code, notes, and snippets.

@AndroidPoet
Created April 17, 2026 17:28
Show Gist options
  • Select an option

  • Save AndroidPoet/60e20089cffb7ee6c3cdffa5e377b049 to your computer and use it in GitHub Desktop.

Select an option

Save AndroidPoet/60e20089cffb7ee6c3cdffa5e377b049 to your computer and use it in GitHub Desktop.
sealed class AppRoute {
data object Home : AppRoute()
data object Settings : AppRoute()
data object About : AppRoute()
data class UserProfile(val userId: String, val showPosts: Boolean = false) : AppRoute()
data class ProductDetail(val productId: Int, val category: String) : AppRoute()
data class SearchResults(val query: String, val filters: String = "") : AppRoute()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment