Default

annotation class Default(expression: String)

Annotates a Property with an associated default expression. The expression is not type-checked and will be used verbatim in the generated code.

@Node(1)
data class Button(
@Property(1) val text: String,
@Property(2) @Default("true") val enabled: Boolean,
)

Constructors

Default
Link copied to clipboard
fun Default(expression: String)

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

expression
Link copied to clipboard
val expression: String