fromValue static method

UIDropOperation fromValue(
  1. int value
)

Implementation

static UIDropOperation fromValue(int value) => switch (value) {
  0 => UIDropOperationCancel,
  1 => UIDropOperationForbidden,
  2 => UIDropOperationCopy,
  3 => UIDropOperationMove,
  _ => throw ArgumentError('Unknown value for UIDropOperation: $value'),
};