fromValue static method
Implementation
static UIViewKeyframeAnimationOptions fromValue(int value) => switch (value) {
1 => UIViewKeyframeAnimationOptionLayoutSubviews,
2 => UIViewKeyframeAnimationOptionAllowUserInteraction,
4 => UIViewKeyframeAnimationOptionBeginFromCurrentState,
8 => UIViewKeyframeAnimationOptionRepeat,
16 => UIViewKeyframeAnimationOptionAutoreverse,
32 => UIViewKeyframeAnimationOptionOverrideInheritedDuration,
512 => UIViewKeyframeAnimationOptionOverrideInheritedOptions,
0 => UIViewKeyframeAnimationOptionCalculationModeLinear,
1024 => UIViewKeyframeAnimationOptionCalculationModeDiscrete,
2048 => UIViewKeyframeAnimationOptionCalculationModePaced,
3072 => UIViewKeyframeAnimationOptionCalculationModeCubic,
4096 => UIViewKeyframeAnimationOptionCalculationModeCubicPaced,
_ => throw ArgumentError('Unknown value for UIViewKeyframeAnimationOptions: $value'),
};