fromValue static method

UIAlertControllerStyle fromValue(
  1. int value
)

Implementation

static UIAlertControllerStyle fromValue(int value) => switch (value) {
  0 => UIAlertControllerStyleActionSheet,
  1 => UIAlertControllerStyleAlert,
  _ => throw ArgumentError('Unknown value for UIAlertControllerStyle: $value'),
};