Clone this repo:
  1. 89873d1 Allow dart_internal 0.2.0 & fix analyzer/formatter issues (#102) by lukaszkolodziejczyk · 3 days ago master
  2. 205b0b8 Merge pull request #95 from google/mit-mit-patch-1 by Nick Croll · 10 months ago
  3. be25250 Update pubspec.yaml by Michael Thomsen · 10 months ago mit-mit-patch-1
  4. 4f981e3 Fix return type of test helper method (#90) by Nicholas Shahan · 1 year, 1 month ago
  5. 6608f88 Update license at top of file to match the repo LICENSE file (#89) by Nicholas Shahan · 1 year, 1 month 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.


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