fromValue static method

UITextSmartQuotesType fromValue(
  1. int value
)

Implementation

static UITextSmartQuotesType fromValue(int value) => switch (value) {
  0 => UITextSmartQuotesTypeDefault,
  1 => UITextSmartQuotesTypeNo,
  2 => UITextSmartQuotesTypeYes,
  _ => throw ArgumentError('Unknown value for UITextSmartQuotesType: $value'),
};