addAllHandlerFromOtherBus method
Adds all handlers from another EventBus to this one. Sets up stream cancellation to remove nodes when they're no longer needed.
Implementation
@override
void addAllHandlerFromOtherBus(
EventBus fromBus,
) {
if (fromBus is EventBusMixin) {
for (var element in fromBus._eventsMap.entries) {
// if (element.value.handler != null) {
_eventsMap[element.key] = element.value;
element.value._streamController.stream.doOnCancel(() {
removeNode(element.key, element.value);
});
}
// }
}
}