ESteamInputLedFlag.fromValue constructor

ESteamInputLedFlag.fromValue(
  1. int value
)

Implementation

factory ESteamInputLedFlag.fromValue(int value) {
  switch (value) {
    case 0:
      return ESteamInputLedFlag.setColor;
    case 1:
      return ESteamInputLedFlag.restoreUserDefault;
    default:
      throw UnknownEnumValueException(
        "Unknown value for 'ESteamInputLedFlag'. The value was: '$value'",
      );
  }
}