fromValue static method
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'),
};