Skip to main content

StreamSubscription

Subscription to an event stream. Call [cancel] to stop listening.

Constructors

new StreamSubscription()

new StreamSubscription(dart): StreamSubscription

Parameters

ParameterType
dartany

Returns

StreamSubscription

Source

src/events.ts:226

Properties

PropertyModifierType
dartprivateany

Methods

cancel()

cancel(): void

Returns

void

Source

src/events.ts:232


unsubscribe()

unsubscribe(): void

Returns

void

Source

src/events.ts:230