Subscription class

The class manages the subscription to event bus

Constructors

Subscription(Stream _stream)
Create the subscription [...]

Properties

subscriptions → List<StreamSubscription>
Subscriptions that registered to event bus
final
hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

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. [...]
respond<T>(Responder<T> responder) Subscription
Register a responder to event bus for the event type T. If T is omitted or given as dyanmic, it listens to all events that publised on EventBus. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

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