value property

T get value

Gets the current value and establishes a reactive dependency.

When accessed within a reactive context (Effect, Computed, etc.), the context will be notified when this value changes.

Example:

final count = Signal(0);
final doubled = Computed(() => count.value * 2);

Implementation

T get value;