fromValue static method
Implementation
static UIInterfaceOrientationMask fromValue(int value) => switch (value) {
2 => UIInterfaceOrientationMaskPortrait,
16 => UIInterfaceOrientationMaskLandscapeLeft,
8 => UIInterfaceOrientationMaskLandscapeRight,
4 => UIInterfaceOrientationMaskPortraitUpsideDown,
24 => UIInterfaceOrientationMaskLandscape,
30 => UIInterfaceOrientationMaskAll,
26 => UIInterfaceOrientationMaskAllButUpsideDown,
_ => throw ArgumentError('Unknown value for UIInterfaceOrientationMask: $value'),
};