fromValue static method
Implementation
static stbte_action fromValue(int value) => switch (value) {
0 => STBTE_tool_select,
1 => STBTE_tool_brush,
2 => STBTE_tool_erase,
3 => STBTE_tool_rectangle,
4 => STBTE_tool_eyedropper,
5 => STBTE_tool_link,
6 => STBTE_act_toggle_grid,
7 => STBTE_act_toggle_links,
8 => STBTE_act_undo,
9 => STBTE_act_redo,
10 => STBTE_act_cut,
11 => STBTE_act_copy,
12 => STBTE_act_paste,
13 => STBTE_scroll_left,
14 => STBTE_scroll_right,
15 => STBTE_scroll_up,
16 => STBTE_scroll_down,
_ => throw ArgumentError('Unknown value for stbte_action: $value'),
};