8.6 Released with 🥽 visionOS support and more!
Check it out
WrappedValue
Helper class that is used to fire property change even when real object is the same. By default property change will not be fired for a same object. By wrapping object into a WrappedValue instance `same object restriction` will be passed.

Summary

Constructors

constructor

Properties

wrapped

Methods

unwrap
wrap

Constructors

constructor

new WrappedValue(wrapped: any): WrappedValue
Creates an instance of WrappedValue object.
Parameter Default Description
wrapped
any

the real value which should be wrapped.

Returns WrappedValue

Properties

wrapped

wrapped: any
Property which holds the real value.

Methods

unwrap

Static
unwrap(value: any): any
Gets the real value of previously wrappedValue.
Parameter Default Description
value
any

Value that should be unwraped. If there is no wrappedValue property of the value object then value will be returned.

Returns any

wrap

Static
wrap(value: any): any
Returns an instance of WrappedValue. The actual instance is get from a WrappedValues pool.
Parameter Default Description
value
any

Value that should be wrapped.

Returns any
Previous
WrapLayout