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:219

Properties

PropertyModifierType
dartprivateany

Methods

cancel()

cancel(): void

Returns

void

Source

src/events.ts:225


unsubscribe()

unsubscribe(): void

Returns

void

Source

src/events.ts:223