parse method

BlueConnectionState parse(
  1. String value
)

Implementation

static BlueConnectionState parse(String value) {
  if (value == disconnected.value) {
    return disconnected;
  } else if (value == connecting.value) {
    return connecting;
  } else if (value == connected.value) {
    return connected;
  }
  throw ArgumentError.value(value);
}