listen method
Attach a callback to the widget
Implementation
void listen(core.ReadonlySignal value, VoidCallback cb) {
_listen.putIfAbsent(
value.globalId,
() => value.subscribe((val) => _callback(cb, listener: true)),
);
}
Attach a callback to the widget
void listen(core.ReadonlySignal value, VoidCallback cb) {
_listen.putIfAbsent(
value.globalId,
() => value.subscribe((val) => _callback(cb, listener: true)),
);
}