notify method

  1. @override
void notify([
  1. bool force = true
])
override

Manually notifies all subscribers that this signal has changed.

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

Example:

counter.notify(); // Force downstream effects to run

Implementation

@pragma("vm:prefer-inline")
@pragma("wasm:prefer-inline")
@pragma("dart2js:prefer-inline")
@override
void notify([bool force = true]) {
  assert(!isDisposed, "Signal is disposed");
  notifySignal(this);
}