fromValue static method

UITextInlinePredictionType fromValue(
  1. int value
)

Implementation

static UITextInlinePredictionType fromValue(int value) => switch (value) {
  0 => UITextInlinePredictionTypeDefault,
  1 => UITextInlinePredictionTypeNo,
  2 => UITextInlinePredictionTypeYes,
  _ => throw ArgumentError('Unknown value for UITextInlinePredictionType: $value'),
};