EventSubscription<T> class final

A subscription to events of type T.

Calling pause drops events for this subscription until resume is called. It deliberately does not call StreamSubscription.pause, so a paused subscription cannot build an unbounded event buffer.

Implemented types

Properties

hashCode → int
The hash code for this object.
no setterinherited
isCancelled → bool
Whether this subscription was cancelled.
no setter
isPaused → bool
Whether event callbacks are currently being ignored.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

cancel() → void
Cancels the subscription without requiring callers to await a Future.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pause([Future<void>? resumeSignal]) → void
Stops invoking this subscription's callback and drops future events.
resume() → void
Starts invoking this subscription's callback again.
toString() → String
A string representation of this object.
inherited

Operators

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