class ObservableBox<T>


An observable box that holds a value. Use this if you want to store a single value. For other cases, it is better to use ObservableList, ObservableMap, or a custom Observable implementation based on Observable. The property name for changes is "value".

Inheritance

Constructors

ObservableBox([T initialValue])

Properties

changes → Stream<List<ChangeRecord>>

read-only, inherited
hashCode → int

Get a hash code for this object.

read-only, inherited
hasObservers → bool

True if this object has any observers, and should call notifyPropertyChange for changes.

read-only, inherited
runtimeType → Type

A representation of the runtime type of the object.

read-only, inherited
value → T

read / write

Operators

operator ==(other) → bool

The equality operator.

inherited

Methods

deliverChanges() → bool

Synchronously deliver pending changes. Returns true if any records were delivered, otherwise false.

inherited
noSuchMethod(Invocation invocation) → dynamic

Invoked when a non-existent method or property is accessed.

inherited
notifyChange(ChangeRecord record) → void

Notify observers of a change.

inherited
notifyPropertyChange(Symbol field, Object oldValue, Object newValue) → dynamic

Notify that the field name of this object has been changed.

inherited
observed() → void

Override this method to be called when the changes are first observed.

inherited
toString() → String

Returns a string representation of this object.

unobserved() → void

Override this method to be called when the changes are no longer being observed.

inherited