addSubscriptions method

void addSubscriptions(
  1. Iterable<StreamSubscription> subs
)

A generic method to add (bulk) event subscriptions which will also get cancelled when unloadEventHandlers is called.

Implementation

void addSubscriptions(Iterable<StreamSubscription> subs) {
  _eventSubscriptions.addAll(subs);
}