So I wondering if there’s an extension function that do the following,
Copy code
if (condition){
wrapComposableWith( Container() )
} else {
createComposable
}
z
Zach Klippenstein (he/him) [MOD]
08/26/2021, 8:00 PM
Can you elaborate? What are those functions supposed to do? In particular, it doesn’t make sense to “create” a composable so I’m not sure what you mean there.
👍 1
m
Mohamed Ibrahim
08/27/2021, 8:43 PM
Copy code
createComposable -> same as calling Composable()
I need a short syntax for the snippet; I call the composable wrapped with a container if the condition is true. Otherwise, I call the composable directly.
z
Zach Klippenstein (he/him) [MOD]
08/28/2021, 12:13 AM
There’s no special way to do that. Seems like a very specific thing you're trying to do