observer 0.0.1 icon indicating copy to clipboard operation
observer: ^0.0.1 copied to clipboard

Basic dart only observer pattern.

Basic dart only observer pattern without any special features.

Features #

  • pass context through update arguments

Usage #

  • Inheritance from observer/observable
  • Add observer to observable instances
  • Call notifyObservers form the observable instance
//create observer
final observer = ObserverX();

//create observable and both observer
final observable = ObservableX();
observable.addObserver(observer);

//notifies all observer
observable.notifyObservers(/*arguments*/);

Checkout example or test for detailed information.

1
likes
120
pub points
72%
popularity

Publisher

verified publisher iconantonkesy.de

Basic dart only observer pattern.

Repository (GitHub)

Documentation

API reference

License

Icon for licenses.MIT (LICENSE)

More

Packages that depend on observer