hooks property

(T Function(), void Function(T)) get hooks

Easy destructure to get and set the value

final counter = signal(0);
...
final (getCount, setCount) = counter.hooks;

Implementation

(T Function(), void Function(T)) get hooks => (get, set);