Represents an object with observable properties. This is used by data in model-view architectures to notify interested parties of changes to the object's properties (fields or getter/setter pairs).
The interface does not require any specific technique to implement observability. You can implement it in the following ways:
extend or mixin this class, and let the application call dirtyCheck periodically to check for changes to your object.
extend or mixin ChangeNotifier, and implement change notifications manually by calling notifyPropertyChange from your setters.
Performs dirty checking of objects that inherit from Observable. This scans all observed objects using mirrors and determines if any fields have changed. If they have, it delivers the changes for the object.
The stream of change records to this object. Records will be delivered asynchronously.…
Get a hash code for this object.…
True if this object has any observers, and should call
notifyChange
for changes.
A representation of the runtime type of the object.
The equality operator.…
Synchronously deliver pending changes. Returns true if any records were delivered, otherwise false.
Invoked when a non-existent method or property is accessed.…
Notify observers of a change.…
Notify that the field name
of this object has been changed.…
Returns a string representation of this object.