fromValue static method

NSCollectionChangeType fromValue(
  1. int value
)

Implementation

static NSCollectionChangeType fromValue(int value) => switch (value) {
  0 => NSCollectionChangeInsert,
  1 => NSCollectionChangeRemove,
  _ => throw ArgumentError(
    'Unknown value for NSCollectionChangeType: $value',
  ),
};