fromValue static method

GuiScrollBarProperty fromValue(
  1. int value
)

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'),
};