fromValue static method

UIKeyboardAppearance fromValue(
  1. int value
)

Implementation

static UIKeyboardAppearance fromValue(int value) => switch (value) {
  0 => UIKeyboardAppearanceDefault,
  1 => UIKeyboardAppearanceDark,
  2 => UIKeyboardAppearanceLight,
  _ => throw ArgumentError('Unknown value for UIKeyboardAppearance: $value'),
};