fromValue static method

UITextSmartDashesType fromValue(
  1. int value
)

Implementation

static UITextSmartDashesType fromValue(int value) => switch (value) {
  0 => UITextSmartDashesTypeDefault,
  1 => UITextSmartDashesTypeNo,
  2 => UITextSmartDashesTypeYes,
  _ => throw ArgumentError('Unknown value for UITextSmartDashesType: $value'),
};