onStateChange property

  1. @override
Stream<NodeState> get onStateChange
override

Emits the new NodeState whenever the node's lifecycle state changes.

Consecutive duplicates are filtered except for NodeState.needsLogin. A re-auth attempt can produce another needsLogin with a fresh auth URL; callers commonly respond to the state event by calling status, so those repeats remain observable.

Implementation

@override
Stream<NodeState> get onStateChange => _stateController.stream;