removeAllHandlerPresentInOtherBus method

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

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);
      // }
    }
  }
}