fromValue static method

GhosttySelectionOrder fromValue(
  1. int value
)

Implementation

static GhosttySelectionOrder fromValue(int value) => switch (value) {
  0 => GHOSTTY_SELECTION_ORDER_FORWARD,
  1 => GHOSTTY_SELECTION_ORDER_REVERSE,
  2 => GHOSTTY_SELECTION_ORDER_MIRRORED_FORWARD,
  3 => GHOSTTY_SELECTION_ORDER_MIRRORED_REVERSE,
  2147483647 => GHOSTTY_SELECTION_ORDER_MAX_VALUE,
  _ => throw ArgumentError('Unknown value for GhosttySelectionOrder: $value'),
};