EventBus class

A class that manages a stream of events.

The EventBus class provides a way to add events to the stream and listen to the stream of events.

Constructors

EventBus()

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

fire(Event event) → void
Adds an event to the stream managed by this EventBus.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
on<Event>() → dynamic
Returns the stream of events managed by this EventBus.
toString() String
A string representation of this object.
inherited

Operators

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