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