EventEmitter mixin

Properties

hashCode int
The hash code for this object.
no setterinherited
recurrentEvents Map<String, List<Function>>
Mapping of events to a list of event handlers
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
singleEvents Map<String, List<Function>>
Mapping of events to a list of one-time event handlers
final

Methods

clearListeners() → void
This function attempt to remove all handlers from the event.
emit(String event, [List arguments = const []]) → void
This function triggers all the handlers currently listening to event and passes them data
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
on(String event, Function handler) → void
This function binds the handler as a listener to the event
once(String event, Function handler) → void
This function binds the handler as listener to the first occurrence of the event. When handler is called once, it is removed.
toString() String
A string representation of this object.
inherited

Operators

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