fromValue static method

GuiComboBoxProperty fromValue(
  1. int value
)

Returns the GuiComboBoxProperty for the given native value.

Throws ArgumentError if value does not correspond to a known entry.

Implementation

static GuiComboBoxProperty fromValue(int value) => switch (value) {
  16 => COMBO_BUTTON_WIDTH,
  17 => COMBO_BUTTON_SPACING,
  _ => throw ArgumentError('Unknown value for $GuiComboBoxProperty: $value'),
};