Node

annotation class Node(value: Int)

Annotates a data class which represents a node in a UI tree. Each node in a Schema must have a unique value.

All of the properties in the class must be annotated with either Property or Children.

@Node(1)
data class Box(
@Property(1) val orientation: Orientation,
@Children val children: List<Any>,
)

Constructors

Node
Link copied to clipboard
fun Node(value: Int)

Functions

equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open fun hashCode(): Int
toString
Link copied to clipboard
open fun toString(): String

Properties

value
Link copied to clipboard
val value: Int