value property

T get value

Returns the current computed value.

This getter provides synchronous access to the most recent computed value. It returns the cached value without triggering a recomputation.

Example:

final counter = Reactive(10);
final squared = Computed([counter], (sources) => sources[0].value * sources[0].value);

print(squared.value); // 100

counter.value = 5;
print(squared.value); // 25 (automatically updated)

Implementation

T get value => _value;