addUpdate method
Registers a widget’s subscription to reactive updates for a given key.
This is typically called in a widget’s initState().
Implementation
void addUpdate(Key key, UniqueKey uniqueKey, State state) {
final notifier = Notifier(
uniqueKey,
state.setState,
);
_updates.putIfAbsent(key, () => <Notifier>[]).add(notifier);
}