optional

abstract fun optional(): Boolean

Declares that this prop can be omitted by the caller of the component. When a prop is omitted it will take its default value. Its default value will be the standard default initialization value according to the Java standard (e.g. 0, false, null) or the value of a constant declared in spec which is annotated with PropDefault and has the same name and type as the prop.

Return

true iff the prop is optional otherwise false.