Dart DocumentationobserveObservable

Observable abstract class

Interface representing an observable object. This is used by data in model-view architectures to notify interested parties of changes.

This object does not require any specific technique to implement observability.

You can use ObservableMixin as a base class or mixin to implement this.

abstract class Observable {
 /**
  * The stream of change records to this object.
  *
  * Changes should be delivered in asynchronous batches by calling
  * [queueChangeRecords].
  *
  * [deliverChangeRecords] can be called to force delivery.
  */
 Stream<List<ChangeRecord>> get changes;
}

Subclasses

ObservableMixin

Properties

final Stream<List<ChangeRecord>> changes #

The stream of change records to this object.

Changes should be delivered in asynchronous batches by calling queueChangeRecords.

deliverChangeRecords can be called to force delivery.

Stream<List<ChangeRecord>> get changes;