TencentCloudChatEventBus class
Dispatches events to listeners using the Dart Stream API. The EventBus
enables decoupled applications. It allows objects to interact without
requiring to explicitly define listeners and keeping track of them.
Not all events should be broadcast through the EventBus
but only those of
general interest.
Events are normal Dart objects. By specifying a class, listeners can filter events.
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
-
destroy(
) → void -
Destroy this
EventBus
. This is generally only in a testing context. -
fire(
dynamic event, String eventName) → void -
Fires a new event on the event bus with the specified
event
. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
on<
T> (String widgetName) → Stream< T> ? -
Listens for events of Type
T
and its subtypes. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited