fromValue static method

GhosttyMouseAction fromValue(
  1. int value
)

Implementation

static GhosttyMouseAction fromValue(int value) => switch (value) {
  0 => GHOSTTY_MOUSE_ACTION_PRESS,
  1 => GHOSTTY_MOUSE_ACTION_RELEASE,
  2 => GHOSTTY_MOUSE_ACTION_MOTION,
  _ => throw ArgumentError('Unknown value for GhosttyMouseAction: $value'),
};