fromValue static method

UIImageOrientation fromValue(
  1. int value
)

Implementation

static UIImageOrientation fromValue(int value) => switch (value) {
  0 => UIImageOrientationUp,
  1 => UIImageOrientationDown,
  2 => UIImageOrientationLeft,
  3 => UIImageOrientationRight,
  4 => UIImageOrientationUpMirrored,
  5 => UIImageOrientationDownMirrored,
  6 => UIImageOrientationLeftMirrored,
  7 => UIImageOrientationRightMirrored,
  _ => throw ArgumentError('Unknown value for UIImageOrientation: $value'),
};