EventNodeImp<T> class
EventNodeImp stores the current value and fans events out to listeners.
- Implemented types
-
- EventNode<
T> - SubscriptionHost<
T>
- EventNode<
Constructors
- EventNodeImp({T? currentData})
Properties
- currentData ↔ T?
-
getter/setter pairoverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasListenerSubscriptions → bool
-
True when at least one subscription can receive listener events.
no setteroverride
- hasSubscriptions → bool
-
True when the node has at least one subscription that is not cancelled.
no setteroverride
- isDisposed → bool
-
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
streamControllerValue
→ StreamController<
T> -
no setteroverride
-
subscriptions
→ Iterable<
EventSubscription< T> > -
no setteroverride
Methods
-
addSubscription(
EventSubscription< T> subscription) → void -
override
-
copy(
) → EventNode< T> -
Creates an independent node with the same current data.
override
-
deliver(
EventDTO dto) → bool -
Stores the value and notifies listeners. Request handlers are invoked by
the bus, not here, so the value is scheduled before a handler can complete
the request.
override
-
dispose(
) → Future< void> -
Disposes of the node, closing all stream controllers and cancelling subscriptions.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeSubscription(
EventSubscription< T> subscription) → void -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited