removeEventListeners method

void removeEventListeners (
  1. String eventType
)
inherited

Removes all event listeners of a given event type.

Implementation

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