isConnected property

bool get isConnected

Whether the socket is currently connected.

Implementation

bool get isConnected => socket != null;