EventEmitter class abstract

Implementers
Annotations
  • @JS()
  • @anonymous

Constructors

EventEmitter()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addListener(dynamic eventName, Function listener) → void
emit(dynamic eventName, [dynamic arg1, dynamic arg2, dynamic arg3, dynamic arg4, dynamic arg5, dynamic arg6]) → void
eventNames() List
getMaxListeners() int
listenerCount(dynamic eventName) int
listeners(dynamic eventName) List<Function>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
on(dynamic eventName, Function listener) EventEmitter
once(dynamic eventName, Function listener) EventEmitter
prependListener(dynamic eventName, Function listener) EventEmitter
prependOnceListener(dynamic eventName, Function listener) EventEmitter
rawListeners(dynamic eventName) List<Function>
removeAllListeners(dynamic eventName) EventEmitter
removeListener(dynamic eventName, Function listener) EventEmitter
setMaxListeners(int value) → void
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

defaultMaxListeners int
getter/setter pair