toConnectionStatus method
Implementation
ConnectionStatus toConnectionStatus() {
switch (this) {
case 'CONNECTED':
return ConnectionStatus.connected;
case 'DISCONNECTED':
return ConnectionStatus.disconnected;
}
throw Exception('$this is not known in enum ConnectionStatus');
}