OptionaloverrideIf true, will try to override the defined property in super.
OptionalcancelIf true, cancels the setter if the new value is the same as the
current value. Defaults to true.
OptionalsetIf true, will fire the setter when the underlying value is undefined and
the program is trying to access it (maybe through its getter).
OptionalreturnIf true and a custom getter is defined, the return value of this
getter will be returned when accessing the property. Otherwise, the underlying saved value will always be returned.
Defaults to false.
OptionalexecuteIf true, when setting the value, the setter will execute first,
and then the value will be stored. In this case, accessing the value in the setter will return the previous value.
Defaults to false.
OptionaldefaultIf defined, whenever the underlying value is undefined and trying to be
accessed, it will be set to defaultValue through the setter before getting accessed.
OptionaldefaultIf defined, whenever the underlying value is undefined and
trying to be accessed, it will be set to the return value of defaultValueCallback through the setter before
getting accessed.
OptionalinitialIf defined, on initialization, the property will be set to initialValue.
OptionalinitialIf defined, on initialization, the property will be set to the
return value of initialValueCallback.
OptionalpreprocessOptional callback to execute on the value and preprocess it just before it is set. The returned value will be stored.
OptionalcallOptional function to call before preprocessing and setting the value.
OptionalcallOptional function to call after setting the value.
Description
Options for configuring the
@autodecorator.