fromValue static method
Implementation
static UIKeyboardType fromValue(int value) => switch (value) {
0 => UIKeyboardTypeDefault,
1 => UIKeyboardTypeASCIICapable,
2 => UIKeyboardTypeNumbersAndPunctuation,
3 => UIKeyboardTypeURL,
4 => UIKeyboardTypeNumberPad,
5 => UIKeyboardTypePhonePad,
6 => UIKeyboardTypeNamePhonePad,
7 => UIKeyboardTypeEmailAddress,
8 => UIKeyboardTypeDecimalPad,
9 => UIKeyboardTypeTwitter,
10 => UIKeyboardTypeWebSearch,
11 => UIKeyboardTypeASCIICapableNumberPad,
_ => throw ArgumentError('Unknown value for UIKeyboardType: $value'),
};