SerialConfig constructor

const SerialConfig({
  1. required String portName,
  2. int baudRate = 19200,
  3. int dataBits = 8,
  4. int stopBits = 1,
  5. String parity = 'N',
  6. Duration timeout = const Duration(seconds: 1),
})

Implementation

const SerialConfig({
  required this.portName,
  this.baudRate = 19200,
  this.dataBits = 8,
  this.stopBits = 1,
  this.parity = 'N',
  this.timeout = const Duration(seconds: 1),
});