Add @:style metadata to a public variable to convert it into a "style"
property.
@:style
public var backgroundSkin:DisplayObject = null;
The following requirements must be met when using @:style metadata:
- The variable must be
public - The variable must not have a getter or setter.
- The variable must be initialized with a default value.
- The variable's type must be nullable. For instance, use
Null<Float>orNull<Int>for numeric types.
Available since
1.0.0
.