StyleProperty
-
Cmn
@ExperimentalFoundationStyleApi
open class StyleProperty<T : Any?>
ProvidableStyleProperty |
Defines a style property whose value can be provided within a style scope. |
Identifies a style property used in style definitions.
| Parameters | |
|---|---|
<T : Any?> |
type of value held by the property |
Summary
Public constructors |
|
|---|---|
<T : Any?> StyleProperty(name: String, isLocal: Boolean, defaultValue: () -> T) |
Cmn
|
Public properties |
||
|---|---|---|
() -> T |
provider for the fallback value when not set |
Cmn
|
Boolean |
whether this property inherits down the layout tree |
Cmn
|
String |
debug/tooling name for the property |
Cmn
|