fromValue static method

ASDiscoveryDescriptorRange fromValue(
  1. int value
)

Implementation

static ASDiscoveryDescriptorRange fromValue(int value) => switch (value) {
      0 => ASDiscoveryDescriptorRangeDefault,
      10 => ASDiscoveryDescriptorRangeImmediate,
      _ => throw ArgumentError("Unknown value for ASDiscoveryDescriptorRange: $value"),
    };