value property

  1. @override
T get value
override

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

@override
T get value {
  return delegated.source.value;
}