fromValue static method

GuiScrollBarProperty fromValue(
  1. int value
)

Returns the GuiScrollBarProperty for the given native value.

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

Implementation

static GuiScrollBarProperty fromValue(int value) => switch (value) {
  16 => ARROWS_SIZE,
  17 => ARROWS_VISIBLE,
  18 => SCROLL_SLIDER_PADDING,
  19 => SCROLL_SLIDER_SIZE,
  20 => SCROLL_PADDING,
  21 => SCROLL_SPEED,
  _ => throw ArgumentError('Unknown value for $GuiScrollBarProperty: $value'),
};