fromValue static method

UITextBorderStyle fromValue(
  1. int value
)

Implementation

static UITextBorderStyle fromValue(int value) => switch (value) {
  0 => UITextBorderStyleNone,
  1 => UITextBorderStyleLine,
  2 => UITextBorderStyleBezel,
  3 => UITextBorderStyleRoundedRect,
  _ => throw ArgumentError('Unknown value for UITextBorderStyle: $value'),
};