fromValue static method

UIViewAnimationTransition fromValue(
  1. int value
)

Implementation

static UIViewAnimationTransition fromValue(int value) => switch (value) {
  0 => UIViewAnimationTransitionNone,
  1 => UIViewAnimationTransitionFlipFromLeft,
  2 => UIViewAnimationTransitionFlipFromRight,
  3 => UIViewAnimationTransitionCurlUp,
  4 => UIViewAnimationTransitionCurlDown,
  _ => throw ArgumentError('Unknown value for UIViewAnimationTransition: $value'),
};