fruitFromString static method
Implementation
static ConnectStatus fruitFromString(String str) {
return ConnectStatus.values
.firstWhere((f) => f.name.toLowerCase() == str.toLowerCase());
//
// return ConnectStatus.CONNECTED.name.toLowerCase() == str.toLowerCase()
// ? ConnectStatus.CONNECTED
// : ConnectStatus.DISCONNECTING;
}