EventEmitter class
Constructors
Properties
-
events
→ Map<
String, Map< String, EventEmitterListener> > -
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
clear(
) → void -
emit(
{required String eventName, required dynamic value}) → void -
generateNewUniqueId(
{required Map< String, EventEmitterListener> event_datas}) → String -
getListenersCount(
{required String eventName}) → int -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
off(
{required EventEmitterListener listener}) → void -
on(
{required String eventName, required FutureOr onCallback(EventEmitterListener listener, dynamic update), Map? stateData}) → EventEmitterListener -
remove(
{required String eventName, required String uniqueId}) → void -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited