parse static method

BlueConnectionState parse(
  1. String value
)

Implementation

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