I would like to express this ```enum class TextRow...
# getting-started
o
I would like to express this
Copy code
enum class TextRowState {
    Enabled,
    Disabled,
    ActiveAlpha{
        fun get(){
            if (Enabled){
                0.5f
            }else{
                1f
            }
        }
    }
}
I dont think that’s right to express though
s
Is something like this what you’re looking for?
Copy code
enum class TextRowState(val alpha: Float) {
    Enabled(alpha = 0.5f),
    Disabled(alpha = 1f),
}
o
yes thank you i reached that at the end 🙂