Last updated:
0 purchases
observer
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*/);
copied to clipboard
Checkout example or test for detailed information.
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.