Subscription class

The class manages the subscription to event bus

Constructors

Subscription(Stream _stream)
Create the subscription
Subscription.empty()
Returns an instance that indicates there is no subscription
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
subscriptions List<StreamSubscription>
Subscriptions that registered to event bus
final

Methods

dispose() → void
Cancel all the registered subscriptions. After calling this method, all the events published won't be delivered to the cleared responders any more.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
respond<T>(Responder<T> responder) Subscription
Register a responder to event bus for the event type T. If T is omitted or given as dynamic, it listens to all events that published on EventBus.
toString() String
A string representation of this object.
inherited

Operators

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