Property
A property is a variable which is modifiable and can have those mutations observed. When serializing a property to Json you can use PropertyTypeAdapterFactory to automatically serialize the stored value in place, instead of wrapping the value in a dictionary.
Whenever a config option calls for a field with type T
, then a Property<T>
will also work.
Parameters
<T>
the type of value this Property can hold.
Functions
Link copied to clipboard
Add a new observer which is interested in updates about this value
Link copied to clipboard
Explicitly notify observers about state changes that are internal to the stored value.
Link copied to clipboard
Alias for addObserver.