notify method
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);
}