fromValue static method

UITextSpellCheckingType fromValue(
  1. int value
)

Implementation

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