isConnected property

bool isConnected
final

true after a successful connection, false after a disconnect or a failed connection attempt.

Implementation

final bool isConnected;