fromNative static method

LSLProcessingOptions fromNative(
  1. lsl_processing_options_t native
)

Converts a native lsl_processing_options_t value to the corresponding LSLProcessingOptions enum value.

Implementation

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