fromValue static method

UITableViewCellDragState fromValue(
  1. int value
)

Implementation

static UITableViewCellDragState fromValue(int value) => switch (value) {
  0 => UITableViewCellDragStateNone,
  1 => UITableViewCellDragStateLifting,
  2 => UITableViewCellDragStateDragging,
  _ => throw ArgumentError('Unknown value for UITableViewCellDragState: $value'),
};