fromValue static method

UIInterfaceOrientationMask fromValue(
  1. int value
)

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'),
};