notify method

  1. @override
void notify()
override

Manually notifies all subscribers that this value has changed.

This is typically called automatically when the value changes, but can be called manually for custom notification scenarios.

Example:

final Readonly<int> readonly = Signal(0).readonly();
readonly.notify(); // Trigger subscribers manually

Implementation

@override
void notify() {
  _dirty = true;
  notifyCustom(this);
}