fromValue static method
Implementation
static UITouchPhase fromValue(int value) => switch (value) {
0 => UITouchPhaseBegan,
1 => UITouchPhaseMoved,
2 => UITouchPhaseStationary,
3 => UITouchPhaseEnded,
4 => UITouchPhaseCancelled,
5 => UITouchPhaseRegionEntered,
6 => UITouchPhaseRegionMoved,
7 => UITouchPhaseRegionExited,
_ => throw ArgumentError('Unknown value for UITouchPhase: $value'),
};