ESteamInputGlyphStyle.fromValue constructor

ESteamInputGlyphStyle.fromValue(
  1. int value
)

Implementation

factory ESteamInputGlyphStyle.fromValue(int value) {
  switch (value) {
    case 0:
      return ESteamInputGlyphStyle.knockout;
    case 1:
      return ESteamInputGlyphStyle.light;
    case 2:
      return ESteamInputGlyphStyle.dark;
    case 16:
      return ESteamInputGlyphStyle.neutralColorABXY;
    case 32:
      return ESteamInputGlyphStyle.solidABXY;
    default:
      throw UnknownEnumValueException(
        "Unknown value for 'ESteamInputGlyphStyle'. The value was: '$value'",
      );
  }
}