fromValue static method

GuiToggleProperty fromValue(
  1. int value
)

Returns the GuiToggleProperty for the given native value.

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

Implementation

static GuiToggleProperty fromValue(int value) => switch (value) {
  16 => GROUP_PADDING,
  17 => GROUP_WIDTH_FULL,
  _ => throw ArgumentError('Unknown value for $GuiToggleProperty: $value'),
};