removeEventListeners method

void removeEventListeners (String eventType)

Removes all event listeners of a given event type.

Implementation

void removeEventListeners(String eventType) {
  this.on(eventType).cancelSubscriptions();
}