removeAllListeners method

  1. @mustCallSuper
void removeAllListeners([
  1. String? eventName
])

Implementation

@mustCallSuper
void removeAllListeners([String? eventName]) {
  if (eventName != null && eventName.isNotEmpty) {
    _events[eventName]!.clear();
  } else {
    _events.clear();
  }
}