fromValue static method

GuiProgressBarProperty fromValue(
  1. int value
)

Returns the GuiProgressBarProperty for the given native value.

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

Implementation

static GuiProgressBarProperty fromValue(int value) => switch (value) {
  16 => PROGRESS_PADDING,
  _ => throw ArgumentError('Unknown value for $GuiProgressBarProperty: $value'),
};