isConnected property
Implementation
bool get isConnected => switch (_connectionState) {
ConnectionState.connecting || ConnectionState.connected || ConnectionState.reconnecting => true,
ConnectionState.disconnected => false,
};
bool get isConnected => switch (_connectionState) {
ConnectionState.connecting || ConnectionState.connected || ConnectionState.reconnecting => true,
ConnectionState.disconnected => false,
};