UiEventChannel class

A broadcast stream of UiRenderEvents.

The host UI subscribes to events to paint rendered trees; the agent (or its test harness) subscribes to observe interaction routing and policy decisions.

Constructors

UiEventChannel()

Properties

events → Stream<UiRenderEvent>
Stream of all UI render events. Broadcast so multiple subscribers (host UI, agent trace recorder, tests) can listen simultaneously.
no setter
hashCode → int
The hash code for this object.
no setterinherited
isClosed → bool
Whether the channel is still open (not closed).
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

close() → Future<void>
Close the channel. Idempotent.
emit(UiRenderEvent event) → void
Emit a single event to all subscribers (FR-003, FR-004, FR-006).
emitDone(String viewId) → void
Emit a done event signalling no more partials are coming for a view.
emitError(Object error) → void
Emit an error event (FR-002 — typed errors propagated through the channel).
emitInteraction(SemanticAction action) → void
Emit an interaction event (FR-004).
emitPolicy(SemanticAction action, {required bool approved}) → void
Emit a policy-decision event (FR-006).
emitRender(RenderedView view, {bool isPartial = false}) → void
Emit a render event for the given view (FR-001). Set isPartial to true for intermediate progressive-rendering events (FR-003).
emitReplace(String replacedViewId, RenderedView view) → void
Emit a replace event (FR-001 acceptance 2).
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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