notify method

  1. @override
void notify()
override

Notify this object to propagate changes.

Implementation

@override
void notify() {
  if (!isActive) {
    return;
  }

  // Notify all subs and remove invalid subs
  // TODO: performance?
  subs.removeWhere((element) {
    element.notifyCallback(value);
    return !element.isValid;
  });
}