Default

@Target(allowedTargets = [AnnotationTarget.PROPERTY])
annotation class Default(val expression: String)

Deprecated

Migrate to normal default parameter expressions

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

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

Properties

Link copied to clipboard