untrackedValue property

T get untrackedValue

Runs a callback function that returns the signal value without subscribing to the signal updates.

final counter = signal(0);
final untrackedValue = counter.untrackedValue;

Implementation

T get untrackedValue => untracked(() => value);