fromValue static method

GhosttyRowSemanticPrompt fromValue(
  1. int value
)

Implementation

static GhosttyRowSemanticPrompt fromValue(int value) => switch (value) {
  0 => GHOSTTY_ROW_SEMANTIC_NONE,
  1 => GHOSTTY_ROW_SEMANTIC_PROMPT,
  2 => GHOSTTY_ROW_SEMANTIC_PROMPT_CONTINUATION,
  _ => throw ArgumentError(
    'Unknown value for GhosttyRowSemanticPrompt: $value',
  ),
};