connectionState property
ConnectionState
connectionState
Implementation
ConnectionState get connectionState {
if (_connected == true) {
return ConnectionState.open;
} else {
return ConnectionState.closed;
}
}