SubscriptionHost<T> class abstract

A node that can host EventSubscriptions.

Every built-in node implements it. A custom EventNode that wants to support EventBus.subscribe must implement it too; the bus throws UnsupportedError otherwise.

Implementers

Constructors

SubscriptionHost()

Properties

hashCode → int
The hash code for this object.
no setterinherited
hasListenerSubscriptions → bool
True when at least one subscription can receive listener events.
no setter
hasSubscriptions → bool
True when the node has at least one subscription that is not cancelled.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
subscriptions → Iterable<EventSubscription<T>>
no setter

Methods

addSubscription(EventSubscription<T> subscription) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeSubscription(EventSubscription<T> subscription) → void
toString() → String
A string representation of this object.
inherited

Operators

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