fromValue static method
Implementation
static UIAlertActionStyle fromValue(int value) => switch (value) {
0 => UIAlertActionStyleDefault,
1 => UIAlertActionStyleCancel,
2 => UIAlertActionStyleDestructive,
_ => throw ArgumentError('Unknown value for UIAlertActionStyle: $value'),
};