Skip to content

Instantly share code, notes, and snippets.

@olshevski
Last active February 4, 2022 10:03
Embed
What would you like to do?
For "Compose Navigation Reimagined" blogpost on Medium
sealed class Screen : Parcelable {
@Parcelize
object First : Screen()
@Parcelize
data class Second(val id: Int) : Screen()
@Parcelize
data class Third(val text: String) : Screen()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment