pajatopmr
10/14/2022, 6:29 AM@Stable class Filter(
val name: String,
enabled: Boolean = false,
val icon: ImageVector? = null
) {
val enabled = mutableStateOf(enabled)
}
which has me wondering why the “val enabled” property is not passed in the constructor and the class is not a data class. Is this some sort of compose pattern? Possibly to use in a destructured access to the “setEnabled” setter, which I do observe in Jetsnack.Albert Chang
10/14/2022, 8:52 AMequals()
or hashCode()
yourself, otherwise they are not stable.