AppEventsDispatcher class

Global event dispatcher.

Constructors

AppEventsDispatcher.new()
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stream Stream<AppEvent?>
no setter

Methods

listenTo<T extends AppEvent>(void onData(T event), {Function? onError, void onDone()?, bool? cancelOnError}) StreamSubscription<T>
Listens for a specific type of AppEvent.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
publish(AppEvent event) → void
Sends a new AppEvent through dispatch.
toString() String
A string representation of this object.
inherited

Operators

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