SerialPortReader constructor
SerialPortReader(
- SerialPort port, {
- int? timeout,
Creates a reader for the port. Optional timeout parameter can be
provided to specify a time im milliseconds between attempts to read after
a failure to open the port for reading. If not given, timeout defaults
to 500ms.
Implementation
factory SerialPortReader(SerialPort port, {int? timeout}) =>
_SerialPortReaderImpl(port, timeout: timeout);