notify method
Called when a dependency of this computed changes.
Marks this computed as dirty (invalidating the cache) and propagates the notification to any observers watching this computed.
Implementation
@override
void notify() {
if (!_isDirty) {
_isDirty = true;
notifyObservers();
}
}