fromValue static method

CommTimeoutType fromValue(
  1. int value
)

Implementation

static CommTimeoutType fromValue(int value) {
  switch (value) {
    case 0:
      return CommTimeoutType.wildcardPairingTimeout;
    case 1:
      return CommTimeoutType.pairingTimeout;
    case 2:
      return CommTimeoutType.connectionLost;
    case 3:
      return CommTimeoutType.connectionTimeout;
    default:
      throw ArgumentError.value(value);
  }
}