EventEmitter mixin
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