Android, Jetpack Compose, Android App Development, Mobile App Development, Programming.
can also be used for better generalisation. Let’s declare two screens in the form of data classes: @Serializable sealed class Routes{ @Serializable data object FirstScreen : Routes() // pure data object without any primitive @Serializable data class SecondScreen(val customPrimitive: String) :