isConnected property

bool get isConnected

Returns true if the connection is active.

Implementation

bool get isConnected => _connection?.isConnected ?? false;