LSLStreamInfo constructor

LSLStreamInfo({
  1. String streamName = "DartLSLStream",
  2. LSLContentType streamType = LSLContentType.eeg,
  3. int channelCount = 16,
  4. double sampleRate = 250.0,
  5. LSLChannelFormat channelFormat = LSLChannelFormat.float32,
  6. String sourceId = "DartLSL",
  7. lsl_streaminfo? streamInfo,
})

Creates a new LSLStreamInfo object.

The streamName, streamType, channelCount, sampleRate, channelFormat, and sourceId parameters are used to create the stream info object.

Implementation

LSLStreamInfo({
  this.streamName = "DartLSLStream",
  this.streamType = LSLContentType.eeg,
  this.channelCount = 16,
  this.sampleRate = 250.0,
  this.channelFormat = LSLChannelFormat.float32,
  this.sourceId = "DartLSL",
  lsl_streaminfo? streamInfo,
}) : _streamInfo = streamInfo {
  if (_streamInfo != null) {
    super.create();
  }
}