peek property
Returns the current value without establishing a reactive dependency.
Use this when you need to read the value without triggering reactivity, such as in event handlers or side effects.
Example:
final counter = Signal(0);
print(counter.peek); // Doesn't create dependency
Implementation
@pragma("vm:prefer-inline")
@pragma("wasm:prefer-inline")
@pragma("dart2js:prefer-inline")
@override
T get peek {
assert(!isDisposed, "Signal is disposed");
return pendingValue as T;
}