fromValue static method

Implementation

static UISplitViewControllerBackgroundStyle fromValue(int value) => switch (value) {
  0 => UISplitViewControllerBackgroundStyleNone,
  1 => UISplitViewControllerBackgroundStyleSidebar,
  _ => throw ArgumentError('Unknown value for UISplitViewControllerBackgroundStyle: $value'),
};