fromValue static method

GuiDropdownBoxProperty fromValue(
  1. int value
)

Returns the GuiDropdownBoxProperty for the given native value.

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

Implementation

static GuiDropdownBoxProperty fromValue(int value) => switch (value) {
  16 => ARROW_PADDING,
  17 => DROPDOWN_ITEMS_SPACING,
  18 => DROPDOWN_ARROW_HIDDEN,
  19 => DROPDOWN_ROLL_UP,
  _ => throw ArgumentError('Unknown value for $GuiDropdownBoxProperty: $value'),
};