You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
writer.writeCall(
"Row",
parameters =listOf(
rowModifier.toCallParameter()
)
) {
writeCall(
name ="RadioButton",
parameters =listOf(
CallParameter(
name ="selected",
value =ParameterValue.RawValue(node.checked)
),
CallParameter(
name ="onCheckedChange",
value =ParameterValue.EmptyLambdaValue
)
)
)
}
into
write{
"Row"(
rowModifier.toCallParameter()
){
"RadioButton"(
CallParameter(
name ="selected",
value =ParameterValue.RawValue(node.checked)
),
CallParameter(
name ="onCheckedChange",
value =ParameterValue.EmptyLambdaValue
)
)
}
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)
The text was updated successfully, but these errors were encountered: