fromValue static method

NSURLRelationship fromValue(
  1. int value
)

Implementation

static NSURLRelationship fromValue(int value) => switch (value) {
  0 => NSURLRelationshipContains,
  1 => NSURLRelationshipSame,
  2 => NSURLRelationshipOther,
  _ => throw ArgumentError('Unknown value for NSURLRelationship: $value'),
};