listen<T> method
Registers a getter
and a notification
to be notified when the result of calling the getter changes
Implementation
void listen<T>(Getter<T> getter, BolterNotification notification) {
_listeners[notification] = getter;
_hashCache[notification] = ComparableWrapper(getter()).hashCode;
}