toValue method
Implementation
String toValue() {
switch (this) {
case ConnectionStatus.connected:
return 'CONNECTED';
case ConnectionStatus.disconnected:
return 'DISCONNECTED';
}
}
String toValue() {
switch (this) {
case ConnectionStatus.connected:
return 'CONNECTED';
case ConnectionStatus.disconnected:
return 'DISCONNECTED';
}
}