fromValue static method

NSDirectionalRectEdge fromValue(
  1. int value
)

Implementation

static NSDirectionalRectEdge fromValue(int value) => switch (value) {
  0 => NSDirectionalRectEdgeNone,
  1 => NSDirectionalRectEdgeTop,
  2 => NSDirectionalRectEdgeLeading,
  4 => NSDirectionalRectEdgeBottom,
  8 => NSDirectionalRectEdgeTrailing,
  15 => NSDirectionalRectEdgeAll,
  _ => throw ArgumentError('Unknown value for NSDirectionalRectEdge: $value'),
};