fromValue static method

GhosttyPointTag fromValue(
  1. int value
)

Implementation

static GhosttyPointTag fromValue(int value) => switch (value) {
  0 => GHOSTTY_POINT_TAG_ACTIVE,
  1 => GHOSTTY_POINT_TAG_VIEWPORT,
  2 => GHOSTTY_POINT_TAG_SCREEN,
  3 => GHOSTTY_POINT_TAG_HISTORY,
  _ => throw ArgumentError('Unknown value for GhosttyPointTag: $value'),
};