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