fromValue static method

NSUserInterfaceLayoutDirection fromValue(
  1. int value
)

Implementation

static NSUserInterfaceLayoutDirection fromValue(int value) => switch (value) {
  0 => NSUserInterfaceLayoutDirectionLeftToRight,
  1 => NSUserInterfaceLayoutDirectionRightToLeft,
  _ => throw ArgumentError('Unknown value for NSUserInterfaceLayoutDirection: $value'),
};