EventEmitter mixin Null safety

Properties

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

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 non-existent 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