notify method

  1. @override
void notify()

Notifies the consumer that one of its dependencies has changed.

Implementation

@override
void notify() {
  if (_isCanceled) return;
  final current = _signal.peek();
  final previous = _previous;
  _previous = current;
  _listener(previous, current);
}