addChangeListener method
StreamSubscription<CollectionChangeEvent<K, V> >
addChangeListener(
- OnChange<
CollectionChangeEvent< onChangeK, V> >
Registers a new StreamSubscription that provides a
CollectionChangeEvent
denoting when an element has been added,
removed, or updated in the collection.
Implementation
StreamSubscription<CollectionChangeEvent<K, V>> addChangeListener(
OnChange<CollectionChangeEvent<K, V>> onChange) {
_changeSubscriptions.add(
_changeNotifier.stream.asBroadcastStream().listen(onChange),
);
return _changeSubscriptions.last;
}