notify method

  1. @override
void notify()
override

Manually notifies all subscribers that this computed value has changed.

This is typically called automatically by the reactive system when dependencies change, but can be called manually for custom scenarios.

Example:

computed.notify(); // Force downstream effects to re-run

Implementation

@pragma("vm:prefer-inline")
@pragma("wasm:prefer-inline")
@pragma("dart2js:prefer-inline")
@override
void notify() {
  assert(!isDisposed, "Computed is disposed");
  notifyComputed(this);
}