fromValue static method

LSLTransportOptions fromValue(
  1. int value
)

Converts an integer value to the corresponding LSLTransportOptions enum value.

Implementation

static LSLTransportOptions fromValue(int value) {
  return LSLTransportOptions.values.firstWhere(
    (e) => e.value == value,
    orElse: () => throw ArgumentError(
      'No matching LSLTransportOptions for value: $value',
    ),
  );
}