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