Colton Idle
05/03/2023, 3:56 PMenum class Factor {
Classy, Lossy, None
}
@Composable
fun FactorUi(factor: Factor) {Valentin Gusselnikov
05/03/2023, 5:57 PM@Immutable on it, so that later when for some reason we are going to change this enum class, we would see that it has @Immutable annotation, meaning if we want to change it we should comply with @Immutable requirements.
It's a kind of communication with yourself in the future and with your teammates. Nothing changes in terms of performance