removeAllHandlerPresentInOtherBus method

  1. @override
void removeAllHandlerPresentInOtherBus(
  1. EventBus otherBus
)
override

Removes all handlers that are present in another EventBus from this one.

Implementation

@override
void removeAllHandlerPresentInOtherBus(EventBus otherBus) {
  if (otherBus is EventBusMixin) {
    for (var element in otherBus._eventsMap.entries) {
      // if (element.value.handler != null) {
      _eventsMap.remove(element.key);
      // }
    }
  }
}