Kotlin, Android, Software Development, Kotlin Multiplatform, Java.
hierarchies. sealed interface ScreenState data object Loading : ScreenState data class Success(val data: ScreenData) : ScreenState data class Error(val exception: LoadingError) : ScreenState sealed class LoadingError(val errorCode: Int) { data object Unknown : LoadingError(0) data class