Children
Annotates a Widget property as representing child widgets which are contained within the enclosing widget. Children in a Widget class must have a unique tag among all @Children annotations in the class. The type of the property must be () -> Unit
.
@Widget(1)
data class Box(
@Children(1) val children: () -> Unit,
)
Content copied to clipboard
A class may be used as the lambda receiver to denote a scope. The receiver class will be propagated to the generated code and must be included in the schema.
@Widget(1)
data class Box(
@Children(1) val children: BoxScope.() -> Unit,
)
Content copied to clipboard