So I wondering if there’s an extension function th...
# compose
m
So I wondering if there’s an extension function that do the following,
Copy code
if (condition){
  wrapComposableWith( Container() )
} else {
  createComposable
}
z
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
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
There’s no special way to do that. Seems like a very specific thing you're trying to do