HakoEventStreamMixin mixin
A mixin that provides event streaming capabilities for Hako events.
This mixin implements the HakoEventDelegate interface and provides
functionality to stream HakoEvents through an internal sink. It allows
components to open an event stream, receive events through the onEvent
method, and close the stream when it's no longer needed.
- Mixin applications
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isEventStreamOpen → bool
-
Returns whether the event stream is currently open.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
closeEventStream(
) → void - Closes the current event stream and cleans up resources.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onEvent(
HakoEvent event) → void - Handles a HakoEvent by adding it to the event sink if one is available.
-
openEventStream(
) → Stream< HakoEvent> - Creates and returns a stream of Hako events.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited