fromValue static method

UIUserInterfaceLayoutDirection fromValue(
  1. int value
)

Implementation

static UIUserInterfaceLayoutDirection fromValue(int value) => switch (value) {
  0 => UIUserInterfaceLayoutDirectionLeftToRight,
  1 => UIUserInterfaceLayoutDirectionRightToLeft,
  _ => throw ArgumentError('Unknown value for UIUserInterfaceLayoutDirection: $value'),
};