fromValue static method

NSNetServiceOptions fromValue(
  1. int value
)

Implementation

static NSNetServiceOptions fromValue(int value) => switch (value) {
  1 => NSNetServiceNoAutoRename,
  2 => NSNetServiceListenForConnections,
  _ => throw ArgumentError('Unknown value for NSNetServiceOptions: $value'),
};