fromValue static method
Implementation
static UITextSpellCheckingType fromValue(int value) => switch (value) {
0 => UITextSpellCheckingTypeDefault,
1 => UITextSpellCheckingTypeNo,
2 => UITextSpellCheckingTypeYes,
_ => throw ArgumentError('Unknown value for UITextSpellCheckingType: $value'),
};