SerialConfig class

Port configuration passed to FlSerial.open.

All parameters are optional and default to the most common RS-232 settings (115200 8N1, no flow control).

final config = SerialConfig(
  baudRate: 9600,
  parity: 2,       // even
  flowControl: 1,  // RTS/CTS
);

Constructors

SerialConfig({int baudRate = 115200, int dataBits = 8, int stopBits = 1, int parity = 0, int flowControl = 0})
Creates a SerialConfig with sensible defaults (115200 8N1, no flow control).

Properties

baudRate int
Baud rate in bits per second. Common values: 9600, 19200, 38400, 57600, 115200, 230400, 460800, 921600.
getter/setter pair
dataBits int
Number of data bits per frame: 5, 6, 7, or 8.
getter/setter pair
flowControl int
Flow control mode:
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
parity int
Parity mode:
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stopBits int
Number of stop bits: 1 or 2.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited