SerialOptions constructor
SerialOptions({
- required int baudRate,
- int? dataBits,
- int? stopBits,
- ParityType? parity,
- int? bufferSize,
- FlowControlType? flowControl,
Implementation
factory SerialOptions(
{required int baudRate,
int? dataBits,
int? stopBits,
ParityType? parity,
int? bufferSize,
FlowControlType? flowControl}) =>
SerialOptions._(
baudRate: baudRate,
dataBits: dataBits ?? 8,
stopBits: stopBits ?? 1,
parity: parity?.value ?? ParityType.none.value,
bufferSize: bufferSize ?? 255,
flowControl: flowControl?.value ?? FlowControlType.none.value);