value property

  1. @override
T get value
override

Returns the current computed value and establishes a reactive dependency.

When accessed within a reactive context, the context will be notified when this computed value changes. The value is recalculated if needed.

Example:

final computed = Computed(() => signal.value * 2);
final effect = Effect(() => print(computed.value)); // Creates dependency

Implementation

@pragma("vm:prefer-inline")
@pragma("wasm:prefer-inline")
@pragma("dart2js:prefer-inline")
@override
T get value => get();