watchState abstract method

Stream<TwinPlatformState> watchState()

Emits the current state as soon as it is known, then every change.

Several listeners may subscribe at once. Platforms without native support emit TwinPlatformState.fallback.

Implementation

Stream<TwinPlatformState> watchState();