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