getObj static method

BleConnectionState getObj(
  1. int state
)

Implementation

static BleConnectionState getObj(int state) {
  switch (state) {
    case 1:
      return BleConnectionState.connected;
    case 2:
      return BleConnectionState.disconnected;
    case 0:
    default:
      return BleConnectionState.none;
  }
}