state property

SessionState get state

The session’s current state. This is different from connectionState since a session may be active, even if the connection is disconnected (e.g. due to the device being offline).

Implementation

SessionState get state => handle.state;