fromValue static method

GuiValueBoxProperty fromValue(
  1. int value
)

Returns the GuiValueBoxProperty for the given native value.

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

Implementation

static GuiValueBoxProperty fromValue(int value) => switch (value) {
  16 => SPINNER_BUTTON_WIDTH,
  17 => SPINNER_BUTTON_SPACING,
  _ => throw ArgumentError('Unknown value for $GuiValueBoxProperty: $value'),
};