I have a sealed-class like this sealed class LoadState { class Loading : LoadState() class Success : LoadState() class Fail : LoadState() } I use s
I am using MutableStateFlow. My flow type is sealed class with different states (Loading, Success, Error, etc). Initial value of my flow is empty: private val _
Today, I updated my Java version from 16 to 17, and I found that sealed classes is a new feature in it. I think it can be declared like this: public sealed clas