Widget
Annotates a data class which represents a widget in a UI tree. Each widget in a Schema must have a unique tag among all @Widget annotations in the Schema.
All the properties in the class must be annotated with either Property or Children.
@Widget(1)
data class Box(
@Property(1) val orientation: Orientation,
@Children val children: () -> Unit,
)Content copied to clipboard