fromNative static method

LSLTransportOptions fromNative(
  1. lsl_transport_options_t native
)

Converts a native lsl_transport_options_t value to the corresponding LSLTransportOptions enum value.

Implementation

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