fromValue static method
Returns the TouchAction for the given native value.
Throws ArgumentError if value does not correspond to a known entry.
Implementation
static TouchAction fromValue(int value) => switch (value) {
0 => TOUCH_ACTION_UP,
1 => TOUCH_ACTION_DOWN,
2 => TOUCH_ACTION_MOVE,
3 => TOUCH_ACTION_CANCEL,
_ => throw ArgumentError("Unknown value for $TouchAction: $value"),
};