unsubscribeAll method

void unsubscribeAll()

Removes all subscribers (handlers).

Implementation

void unsubscribeAll() {
  _handlers.clear();
}