BasicBus class

BasicBus is a type-based event delivery system

Implemented types

Constructors

BasicBus({List<BusOption>? options})
Creates a new BasicBus with the given options

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

emitter(dynamic eventType, {List<EmitterOpt>? opts}) → Future<Emitter>
Creates a new event emitter.
override
getAllEventTypes() → List<String>
Returns all the event types that this bus knows about (having emitters and subscribers). It omits the WildcardSubscription.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setMetricsTracer(MetricsTracer tracer) → void
Sets the metrics tracer for this bus
subscribe(dynamic eventType, {List<EmitterOpt>? opts}) → Subscription
Subscribe creates a new Subscription.
override
toString() → String
A string representation of this object.
inherited

Operators

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