VantageEventBus class abstract

The core-owned merged, timestamped, ring-buffered event bus.

One bus per Vantage host. Reach it with VantageScope.of(context).eventBus. It is a Listenable: it notifies on every add and clear so timeline UIs can rebuild without subscribing to stream.

Implemented types

Constructors

VantageEventBus()

Properties

buffer List<VantageEvent>
The retained events, oldest first, as an unmodifiable snapshot. Every entry has a non-null VantageEvent.timestamp.
no setter
capacity int
Maximum number of events retained in buffer; older events are dropped.
no setter
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<VantageEvent>
A broadcast stream of events as they arrive. Live only — subscribers do not receive the existing buffer; read that separately.
no setter

Methods

add(VantageEvent event) → void
Adds event, stamping VantageEvent.timestamp when it is null.
addListener(VoidCallback listener) → void
Register a closure to be called when the object notifies its listeners.
inherited
clear() → void
Drops every retained event.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that the object notifies.
inherited
toString() String
A string representation of this object.
inherited

Operators

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