fromValue static method

UISceneCollectionJoinBehavior fromValue(
  1. int value
)

Implementation

static UISceneCollectionJoinBehavior fromValue(int value) => switch (value) {
  0 => UISceneCollectionJoinBehaviorAutomatic,
  1 => UISceneCollectionJoinBehaviorPreferred,
  2 => UISceneCollectionJoinBehaviorDisallowed,
  3 => UISceneCollectionJoinBehaviorPreferredWithoutActivating,
  _ => throw ArgumentError('Unknown value for UISceneCollectionJoinBehavior: $value'),
};