removeEventListener method

void removeEventListener(
  1. String eventType,
  2. EventHandler eventHandler
)
inherited

Implementation

void removeEventListener(String eventType, EventHandler eventHandler) {
  List<EventHandler>? currentHandlers = eventHandlers[eventType];
  if (currentHandlers == null) {
    return;
  }
  currentHandlers.remove(eventHandler);
}