AsyncEventSubscription class
An AsyncEventChannel event subscription.
Constructors
- AsyncEventSubscription.new(AsyncEventSubscriptionGroup _group, AsyncEventListener listener, {AsyncEventID? fromID})
Properties
- channel → AsyncEventChannel
-
The AsyncEventChannel of this subscription.
no setter
- fromID ↔ AsyncEventID?
-
If provided, will receive events starting fromID.
getter/setter pair
- group → AsyncEventSubscriptionGroup
-
The AsyncEventSubscriptionGroup of this subscription.
Note that the group instance can change due to internal optimizations
with other AsyncEventSubscriptionGroup for the same channel.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- isSubscribed → bool
-
Returns
true
if this AsyncEventSubscription instance is subscribed to channel.no setter - lastEventID → AsyncEventID?
-
no setter
- listener → AsyncEventListener
-
The listener Function of events of this subscription.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
cancel(
) → void - Cancels this subscription to channel.
-
ensureSynchronized(
) → FutureOr< bool> - Ensures that this subscription is synchronized with the channel.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pull(
) → FutureOr< int> - Checks for new events for this subscription.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited