peek property
Returns the current computed value without establishing a reactive dependency.
Use this when you need to read the value without triggering reactivity. Note that the value may be stale if dependencies have changed.
Unlike peekCached, this method always recomputes the value (if needed) rather than returning a cached value. This ensures you get the latest computed result, but may be less efficient if you just need a quick cached value check.
Example:
final computed = Computed(() => expensiveCalculation());
print(computed.peek); // Doesn't trigger recomputation but may recompute internally
Implementation
@override
T get peek {
assert(!isDisposed, "Computed is disposed");
return untracked(() => getComputed(this));
}