value property

  1. @override
T get value
override

Gets the current value and establishes a reactive dependency.

When accessed within a reactive context, the context will be notified when this value changes.

Example:

final Readonly<int> readonly = Signal(0).readonly();
final computed = Computed(() => readonly.value * 2);

Implementation

@override
T get value => get();