addAllEventHandlers method

void addAllEventHandlers(
  1. EventManager other
)

add all event handlers from an other instance of EventManager to this one.

Implementation

void addAllEventHandlers(EventManager other) {
  other.listeners.forEach((Type runtimeType, List<dynamic> otherListeners) {
    otherListeners.forEach((dynamic otherListener) {
      _addListener(runtimeType, otherListener);
    });
  });
}