connectionState property
Stream<SocketConnectionState>
get
connectionState
These streams will emit done events when the current socket is done. A stream that emits the last value of the connection state upon subscription.
Implementation
Stream<SocketConnectionState> get connectionState =>
_connectionStateController.stream;