ReactterEventManager class abstract
A abstract-class that adds events management features to classes that use it.
It contains methods for adding, removing, and triggering events, as well as storing event callbacks.
Constructors
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
-
emit(
Object? instance, Enum eventName, [dynamic param]) → void -
Trigger
eventName
event with or without theparam
given. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
off<
T, P> (Object? instance, Enum eventName, CallbackEvent< T, P> callback) → void -
Removes the
callback
ofeventName
. -
offAll(
Object? instance) → void - Removes all instance's events
-
on<
T, P> (Object? instance, Enum eventName, CallbackEvent< T, P> callback) → void -
Puts on to listen
eventName
event. -
one<
T, P> (Object? instance, Enum eventName, CallbackEvent< T, P> callback) → void -
Puts on to listen
eventName
event only once. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited