fromValue static method
Implementation
static MouseCursor fromValue(int value) => switch (value) {
0 => MOUSE_CURSOR_DEFAULT,
1 => MOUSE_CURSOR_ARROW,
2 => MOUSE_CURSOR_IBEAM,
3 => MOUSE_CURSOR_CROSSHAIR,
4 => MOUSE_CURSOR_POINTING_HAND,
5 => MOUSE_CURSOR_RESIZE_EW,
6 => MOUSE_CURSOR_RESIZE_NS,
7 => MOUSE_CURSOR_RESIZE_NWSE,
8 => MOUSE_CURSOR_RESIZE_NESW,
9 => MOUSE_CURSOR_RESIZE_ALL,
10 => MOUSE_CURSOR_NOT_ALLOWED,
_ => throw ArgumentError('Unknown value for MouseCursor: $value'),
};