fromValue static method

UITableViewRowAnimation fromValue(
  1. int value
)

Implementation

static UITableViewRowAnimation fromValue(int value) => switch (value) {
  0 => UITableViewRowAnimationFade,
  1 => UITableViewRowAnimationRight,
  2 => UITableViewRowAnimationLeft,
  3 => UITableViewRowAnimationTop,
  4 => UITableViewRowAnimationBottom,
  5 => UITableViewRowAnimationNone,
  6 => UITableViewRowAnimationMiddle,
  100 => UITableViewRowAnimationAutomatic,
  _ => throw ArgumentError('Unknown value for UITableViewRowAnimation: $value'),
};