wasyl10/24/2019, 3:30 PM
with some paramerters and passes children. However I can’t seem to find
function anywhere, and the class has no constructor, so where is it coming from? Does Compose plugin handle Node subclasses somehow and generate functions for them?
jim10/24/2019, 4:35 PM
) that it considers to be Composable. When these classes are used within Composable functions, we generate composable functions for them. The parameters of the generated composable functions can be called using named parameters, where the names coorespond to setters on the class. This allows you to use
, which will create a
, and set the text using
for any updates.
wasyl10/24/2019, 4:37 PM
that it considers to be ComposableAnd for Android views it will be the leaf node, right? Anyway sounds nice, I guess I was mostly confused by IDE not complaining about the method I didn’t see in the source, but at the same time not completing when I wanted to use it myself 🙂
jim10/24/2019, 4:46 PM