EventNode<T> class

EventNode represents a node in the event bus system. It manages the handler, last data, and stream controllers for a specific topic.

Constructors

EventNode({T? lastData, Handler<T>? handler})
Creates an EventNode with optional initial data and handler. Sets up the stream listener to process incoming events.

Properties

handler ↔ Handler<T>?
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
isDisposed → bool
no setter
isHaveHandler → bool
no setter
lastData ↔ T?
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

copy() → EventNode<T>
Creates an independent node with the same handler and last data. Used to move handlers between buses without sharing state.
dispose() → Future<void>
Disposes of the node, closing all stream controllers and cancelling subscriptions.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
send(EventDTO dto) → void
Sends an event to the node if the data type matches T. Updates the lastData and adds the event to the stream.
toString() → String
A string representation of this object.
inherited

Operators

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