Clone this repo:
  1. 205b0b8 Merge pull request #95 from google/mit-mit-patch-1 by Nick Croll · 5 months ago master
  2. be25250 Update pubspec.yaml by Michael Thomsen · 5 months ago mit-mit-patch-1
  3. 4f981e3 Fix return type of test helper method (#90) by Nicholas Shahan · 9 months ago
  4. 6608f88 Update license at top of file to match the repo LICENSE file (#89) by Nicholas Shahan · 9 months ago
  5. f4d675d Minor fixes and re-add PropertyChangeRecord equality. (#87) by Mark Egli · 9 months ago

Build Status

Support for detecting and being notified when an object is mutated.

An observable is a way to be notified of a continuous stream of events over time.

Some suggested uses for this library:

  • Observe objects for changes, and log when a change occurs
  • Optimize for observable collections in your own APIs and libraries instead of diffing
  • Implement simple data-binding by listening to streams

You may want to look at the former TC39 proposal Observe.observe, which was deprecated.

Usage

There are two general ways to detect changes:

  • Listen to Observable.changes and be notified when an object changes
  • Use Differ.diff to determine changes between two objects