stopListen method

void stopListen(
  1. BolterNotification notification
)

Removes a listener from the registered listeners.

Implementation

void stopListen(BolterNotification notification) {
  final removedGetter = _listeners.remove(notification);
  final removedHash = _hashCache.remove(notification);
  if (removedGetter == null || removedHash == null) {
    throw Exception('no listener in listeners, or getter in cache');
  }
}