(these params could be written in an interal interface, which then would be implemented by the KotlinWriterHelper)
We then could make the names values or getters inside an interface:
val Text = "Text"
val Box = "Box"
val Button = "Button"
val Row = "Row"
val Checkbox = "Checkbox"
val RadioButton = "RadioButton"
val Card = "Card"
val Image = "Image"
val TextField = "TextField"
I saw you were looking for a higher level for KotlinWriter? Maybe something like this is an option?
The code below
would change this code
into
Adding functions like:
would simplify it to:
(these params could be written in an interal interface, which then would be implemented by the KotlinWriterHelper)
We then could make the names values or getters inside an interface:
Such that we can write:
And we could add a Text function:
(I placed the varargs at the start, as that would keep compiling all the old code)