fromValue static method

LSLProcessingOptions fromValue(
  1. int value
)

Converts an integer value to the corresponding LSLProcessingOptions enum value.

Implementation

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